Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 chanting in the Monastery: (10)
As of 2014-12-21 18:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls