in reply to TemplateToolkit and CGI Forms
Just to illustrate what perin said, i ran your TT template through the tpage command line tool, cleaned up some extraneous tag attributes and used the output for a CGI test script. Feel free to run this on your own:
Or test it out here: http://unlocalhost.com/cgi-bin/post_get.cgi -- notice how your run mode parameter goes to a ... different place. Interestingly enough, i really thought that switch from POST to GET would solve the problem, but it does not. You have to pass a hidden param.use strict; use warnings; use Data::Dumper; use CGI::Pretty qw(:standard); print header; print while <DATA>; print pre( Dumper { CGI::Vars() } ); __DATA__ <form method="post" action="?rm=page3"> viewer: <input type="text" name="view" size="10" /><br/> phone: <input type="text" name="phone" size="10" /><br/> <input type="submit" name="cm" value="login" /> </form>
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|