phpNovice12;11038887 wrote:Is there a way to do the navigation from a php script.
Well, one way might be to use the [man]v8js[/man] extension to integrate JavaScript functionality into PHP. I've never tried (or even considered) this before, so I can't comment as to the complexity or effectiveness of such a solution. Personally, if you're talking about integrating JS with PHP, I'd say you're (probably) doing something wrong.
Otherwise, you could examine this __doPostBack() function, determine what it would do in the user's browser, and replicate that behavior/code in your PHP script instead.
phpNovice12;11038887 wrote:If there is a better method of doing this, please be kind enough to share it.
The best way to do screen-scraping is: don't do it at all.
What is your goal? If you're attempting to extract information from a 3rd-party site, look for an API instead. HTML pages are generally served for the benefit of a browser on a user's PC - not another web service (that's what APIs are for). If you can't find, perhaps try contacting the webmaster of that site and see if there are other options available to you.