Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re (tilly) 1: "Action" variables and form data

by tilly (Archbishop)
on Apr 08, 2001 at 21:34 UTC ( #70859=note: print w/replies, xml ) Need Help??

in reply to "Action" variables and form data

There are two ways of submitting data to a CGI program, get and post. CGI will transparently switch to the appropriate one, but it does not accept some variables from get and some from post.

Therefore take the action out of the query string (which is trying to pass it through a get when you are using the post method) and instead add a hidden form element that looks like this:

<input type="hidden" name="action" value="additem">

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-05-11 22:17 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (123 votes). Check out past polls.