CGI.PM and IF statment....

2005-09-09 Thread David Gilden
The if statement below does not seem to work as expected// Given in the HTML: Choose type message Comment about a recent performance or recording Concert or Event Booking inquiry Personal message and in the perl: #!/usr/local/bin/perl use CGI qw/:standard/; use strict; #and other stuff...

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: 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