mcloan Posted November 13, 2006 Share Posted November 13, 2006 I am interested in understanding which php functions and general logic I could use to handle the following steps with a php program.1. Open a web page with php2. Find a form field on the page input a value and submit it3. On the returned page find a section of html in the results such as <td class="txtPopUp" valign="top" align="left"> and read the text value from the page that is right after it.4. Step down to the next line and read the text value on the pageAnyone’s help is much appreciated.Thank you. Link to comment https://forums.phpfreaks.com/topic/27113-help-with-how-to-open-and-read-a-web-page-with-php/ Share on other sites More sharing options...
trq Posted November 13, 2006 Share Posted November 13, 2006 You can forget step 1. not really needed, though you may need the URI of the forms action. Look into using [url=http://php.net/curl]curl[/url] to send the form.Curl will return you a response, from there you'll need to parse it for your data. Link to comment https://forums.phpfreaks.com/topic/27113-help-with-how-to-open-and-read-a-web-page-with-php/#findComment-123941 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.