I am trying to fetch an answer from a remote-server using Snoopy PHP. I have access using login and password and i can "dig" my way through the pages (Login->Wait for Session cookies->link to form) with ease. Then, I submit the prefilled data from my array to this form in order to recieve the data i am looking for.
Once i submitted the data in the form (which works perfect), the server answers a list of all possible entries that i meant (most of the time there is only a single entry). As far as i know, it'll always be the first one from the list. (aka selrow0)
Issue is, i must select the first checkbox inside of the snoopy emulated browser (called selrow0):
<input type="checkbox" name="selrow0" value=" " onclick="clicksel(this)">
and then submit this newly created form to recieve my final answer.
I have been using :
$snoopy->submit($link, $value)
How do i tell snoopy to first check the checkbox, then submit the form? This first checkbox will always be created.
Checkbox has no value preset so can i just drop a "true" in there?
Aucun commentaire:
Enregistrer un commentaire