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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.