nolochemical Posted February 22, 2008 Share Posted February 22, 2008 Hey I'm trying to parse a web page [ http://www.duvalclerk.com/ONCOREWEB/search.aspx?bd=2%2F21%2F2008&ed=2%2F22%2F2008&n=***&bt=OR&d=2%2F22%2F2008&pt=-1&dt=MTG%2CSAT%2CASSIGN&st=fullname ] Above and below the search data the pages are numbered (1-10) links. To move from page to page. The links uses "javascript:__doPostBack('dgResults$_ctl1$_ctl2','')" to move from page to page. I was wondering how the function works so I can move from page to page within my script... what I have so far is but I seem to be getting errors: <?php $url = "http://www.duvalclerk.com/ONCOREWEB/search.aspx?'&bd=2/8/2008&ed=2/9/2008&n=***&bt=OR&d=2/9/2008&dt=MTG,SAT,ASSIGN&st=fullname"; $max = file_get_contents($url); echo $max; echo "<form action=".$url." method='post'> <input type='hidden' name='try' value='javascript:__doPostBack('dgResults$_ctl1$_ctl2','')' /> <input type='submit' name='zim' value='&&&&&&&&&&&&&&&&&&&&&&&' /> </form>"; ?> I searched the site, but the two previous posts don't give much insight. Any help would be greatly appreciated. ~Nolo 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.