Welcome Guest, Not a member yet? Register   Sign In
Collecting NonForm Data from a page
#1

[eluser]JoeLongstreet[/eluser]
I'm new to CodeIgniter and PHP in general, but I was looking for a way to collect information from a page that's not in a form field. All the tutorials I've seen collect information from input/textarea with a button press.

I've seen some helpers that use screen scraping. Is this the best option?

Any pointers or tutorial suggestions would be much appreciated.

Thanks,

Joe
#2

[eluser]bretticus[/eluser]
Not a CI question so much I suppose. Screen-scraping is none too popular either but, sometimes ya gotta scrape. Smile However, use an API when possible. Screen-scraping can break as easily as the content is changed at the source.

There are lots of ways to do this. See File System Functions in the PHP Manual.

For a free library that will let you easily grab the pieces you need...

Simple HTML DOM
#3

[eluser]JoeLongstreet[/eluser]
Thanks, the Simple HTML DOM link looks like what I need.




Theme © iAndrew 2016 - Forum software by © MyBB