in reply to Re: Re: form posting question
in thread form posting question
In such cases, ugly as it is, it helps to look at the HTML on the page:
... <td> <input name="radiobutton" type="radio" onMouseUp="MM_goToURL('parent','agree.asp'); return document.MM_returnValue" value="radiobutton"> I agree </td> <td> <input name="radiobutton" type="radio" onMouseUp="MM_goToURL('parent','recent_resultsdisagree.asp'); return document.MM_returnValue" value="radiobutton"> I disagree </td>
So, the site uses Javascript, instead of an HTML form to store the result. WWW::Mechanize does not do JavaScript, so you'll have to help it out. Most likely, the MM_goToUrl('parent', 'agree.asp') call moves you to the /agree.asp page. So you could simply try to directly use:
$agent->get('http://www.bluffsdogs.com/agree.asp');
or try that line after you've retrieved the user agreement page. WWW::Mechanize tries to make stuff easy, but some times, you still have to look at the HTML for the cause of the problems...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: form posting question
by drake50 (Pilgrim) on May 20, 2004 at 03:13 UTC | |
by Corion (Patriarch) on May 20, 2004 at 07:10 UTC | |
|
Re: Re: Re: Re: form posting question
by drake50 (Pilgrim) on May 19, 2004 at 23:54 UTC | |
by bobn (Chaplain) on May 20, 2004 at 01:29 UTC |