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