greenba Posted April 14, 2009 Share Posted April 14, 2009 Hello, I have the following: <form name="frmPi3" id="frmPi3" method="post" action="http://www.bhtelecom.ba/imenik_telefon.html?a=search" > <select size="1" name="di" id="di" > <option value="033">033</option> </select> <input name="br" id="br" size="34" type="text" value="221111"> <input name="_uqid" id="_uqid" value="" type="hidden"> <input name="_cdt" id="_cdt" value="" type="hidden"> <input name="_hsh" id="_hsh" value="" type="hidden"> <input name="btnSearch" value="Search" class="trazimo" type="submit"> </form> Once I hit the search button a page opens from a server like: So I would like is to have a php script that would from my page submit this form and take the following value from the other server's page "BH TELECOM DD SARAJEVO KABINET GENERALNOG DIREKTORA" this is just an example for this number. Any ideas on how to do this? Link to comment https://forums.phpfreaks.com/topic/154081-read-from-a-page/ Share on other sites More sharing options...
rhodesa Posted April 14, 2009 Share Posted April 14, 2009 you will want to use php's CURL module to do a POST to that form. you can then read the return value (the html for the page) and parse it for the value you want. http://php.net/curl Link to comment https://forums.phpfreaks.com/topic/154081-read-from-a-page/#findComment-809937 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.