Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Re: two submit buttons in a form

by sutch (Curate)
on Mar 12, 2001 at 20:34 UTC ( [id://63846]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: two submit buttons in a form
in thread two submit buttons in a form

The only way that I can duplicate this behavior is to request the value(s) of the parameter in list context:

my @value = $q->param("bloption");

Otherwise, CGI.pm returns a scalar with the value of bloption. Examining the URL of the submitted form (that contains the two submit buttons), I can see that only one value for bloption is actually being submitted:

http://localhost/~sutch/test/index.cgi?bloption=add

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://63846]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found