Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2019-12-15 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?