Re: CGI.PM and IF statment....

2005-09-10 Thread David Dorward
On Sat, 2005-09-10 at 01:44 -0500, David Gilden wrote: > > Choose type message > my $mt = param('message type'); > if (length($mt) == 0) { > This should only redirect it someone has not made a 'selection' > what am I missing? If the user truly has not made a selection, the $mt will be unde

RE: CGI.PM and IF statment....

2005-09-10 Thread Charles K. Clarkson
David Gilden wrote: : The if statement below does not seem to work as expected// : : Given in the HTML: : Don't use white space in form field names. : and in the perl: : : #!/usr/local/bin/perl : use CGI qw/:standard/; : use strict; : : #and other stuff... :

Re: changing action with appended key/value pairs in a POST

2005-09-10 Thread Scott R. Godin
Todd W wrote: "Scott R. Godin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] able to simply add ?step=confirm or ?step=finish to the form action ( -action=>"$htmlform{action}?step=confirm", ... ) [snip] You could refer to the CGI.pm docs, specifically the part about mixi

Re: CGI.PM and IF statment....

2005-09-10 Thread Ovid
--- David Gilden <[EMAIL PROTECTED]> wrote: > my $mt = param('message type'); > > if (length($mt) == 0) { > print redirect("/pages/error.html"); > exit; > } > > This should only redirect it someone has not made a 'selection' > what am I missing? Unless you send bad HTML or someone's messin