I have a webpage with a submit button and I would like php to parse the webpage and click the submit button and get the response (it can be a link or another html page.)
Is there any way to click a submit button using php?
I know there is something like htmlunit for java that allows one to pro-grammatically fill the form fields and click submit button. But I would like to do the same in php.
Thanks
CURL will let you get the results of a form submission
eg
You can also do the same thing with the PHP Stream functions
eg
In either case, $contents should contain the results of the form submission