I'm using a script that's getting parameters passed to it via a form.
Here's the
relevant part of the form:
<select name="datemod">
<option name=0>0 (Today's additions)
<option name=1>1 (Yesterday)
<option name=7>Last Seven Days
<option name=30>Last 30 Days
In the script that's referenced like so:
my $datemod = param('datemod');
At the end of the script I want to open one of three pages depending on
that variable. I tried doing it like this:
if($datemod==7) { print "Location: $fullquery7\n\n";}
elsif($datemod==30) { print "Location: $fullquery30\n\n";}
else {print "Location: $fullquery\n\n";}
The problem is that I must not be pointing to $datemod correctly, because
the if and elsif NEVER trip. The only way I could get it to trip is by doing
"if ($datemod=7)" and when I did that EVERYTHING tripped whether it was 7 or
not.
Am I missing something really obvious?
Thanks,
Tara
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]