CGI.PM and IF statment....

2005-09-10 Thread David Gilden
The if statement below does not seem to work as expected// Given in the HTML: select name=message type option value=0Choose type message/option option value=CommentComment about a recent performance or recording/option option value=Booking inquiryConcert or Event Booking inquiry/option option

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

2005-09-10 Thread David Dorward
On Sat, 2005-09-10 at 01:44 -0500, David Gilden wrote: select name=message type option value=0Choose type message/option 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

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

2005-09-10 Thread Charles K. Clarkson
David Gilden mailto:[EMAIL PROTECTED] wrote: : The if statement below does not seem to work as expected// : : Given in the HTML: : select name=message type Don't use white space in form field names. select name=message_type : and in the perl: : : #!/usr/local/bin/perl : use CGI

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 messing with their