Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: "Action" variables and form data

by geektron (Curate)
on Apr 09, 2001 at 04:09 UTC ( #70893=note: print w/replies, xml ) Need Help??


in reply to "Action" variables and form data

i've encountered this before. if you're using the same variable ( 'action' ), but trying to override the values, you have to:
$q->delete('action'); $q->param( -name => 'action', -value => 'update' );

CGI.pm does NOT swap the values in the $q object, but APPENDS them. substitute $action for @action, and you'll see what's happening. CGI.pm has silently converted your scalar value to a list value, and 'enter' is always the first in the list.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2019-12-14 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?