Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by sutch (Curate)
on Mar 12, 2001 at 20:34 UTC ( #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


Comment on Re: Re: Re: two submit buttons in a form
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-07-14 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls