Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: TemplateToolkit and CGI Forms

by perrin (Chancellor)
on Oct 20, 2004 at 15:03 UTC ( [id://400881]=note: print w/replies, xml ) Need Help??


in reply to TemplateToolkit and CGI Forms

Putting a query string into your form action is not a good idea. Instead, make a hidden form input called rm with the value page3.

Replies are listed 'Best First'.
Re^2: TemplateToolkit and CGI Forms
by gellyfish (Monsignor) on Oct 20, 2004 at 15:09 UTC

    Ah yes, I didn't spot this (the request method) before - more specifically when you are using CGI.pm with a POST request method any query parameters supplied as part of the URL will be ignored by design (although you can uncomment part of the code for this not to happen.) So yes, when you are using a POST method you should be using a hidden field rather then putting the parameter into the URL.

    /J\

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-29 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found