I've never seen this before so it could be I'm outdated, but I'm reading a
page that has two submit buttons in one form.  Here's the code for both of
them:

<input type="submit" name="caseSearch" value="Search" onclick="return
        validateCaseNumber();" class="payBox">
<input type="submit" name="paymentCaseSearch" value="Search To Pay"
        class="payBox longBox"> 

I've used Wireshark and Firefox to track the POST data that is sent out when
POSTing this form back to the server.  When I click on the caseSearch
submit button in Firefox, it includes the value pair "caseSearch=Search" in
the POST data that goes back to the server.

When I use WWW::Mech to submit, that is not sent as POST data.  I've tried
to force it by setting the value to Search, but it was already at that
value and it's not included.

How can I force Mech or the HTTP::Form object to include this extra value
pair in the POST data along with all the other form data?

I'm using mech 1.12-2 from Debian Sarge (Linux) (yeah, that'll get upgraded,
I just have so much free time to deal with it!). 

Thanks for any help on this!


Hal

Reply via email to