in reply to Re: using WWW::Mechanize with more than 1 submit button
in thread using WWW::Mechanize with more than 1 submit button
The buttons must be in different forms of that page, otherwise it makes no difference to the receiving CGI.
Yes it can, since they can have different values. This is perfectly legal.
<form action="foo.html" method="get"> <p> <input type="hidden" name="foo" value="bar" /> <input type="submit" name="where" value="next" /> <input type="submit" name="where" value="prev" /> </p> </form>
The value of where is depends on the submit button that is pressed.
To answer the original question - it does seem to be a lack in the current W::M API - probably worth dropping a line to the author. He seems a friendly chap :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: using WWW::Mechanize with more than 1 submit button
by Corion (Patriarch) on Mar 01, 2003 at 18:27 UTC | |
by adrianh (Chancellor) on Mar 01, 2003 at 18:33 UTC |