I'm trying to POST a value to a page using a html form and get that page's source.
I can get the source using $html = file_get_html('http://www.exam.com/results/');
but before getting the souce, I need to POST the value to that page first, and then grab the source.
lets say other page which I should post the value is http://www.exam.com/results/
and I created a form for value submitting.
<form method="post" action="http://www.exam.com/results/">
<input type="hidden" value="900358967" name="eid">
<input name="confirm" type="submit" value="Enter" >
</form>
so it will POST the value and show data on that page, but how to grab the page source with the data?
Is this possible? I searched everywhere and tried to grab it but I don't know how to grab after POST-ing the value.