Gossamer Forum
Home : General : Perl Programming :

Script Problem

Quote Reply
Script Problem
Please look at this code:

if($In{ILAN} and $In{ILAD})
{ print "Location: /page2.html\n\n"; }
elsif($In{ILAN} or $In{ILAD})
{ print "For ILA, please fill out both boxes\n\n"; }
else
{ print "Location: /page1.html\n\n";
};

(ILAN and ILAD are both form box names)


Now if both ILAN and ILAD are NOT filed out, the script goes correctly to /page1.html
If ILAN and ILAD ARE filed out, the script goes correctly to /page2.html
But if only 1 is filled out I get 500 error instead of the print statement.

What am I doing wrong here? (yep, new to perl)



________________________
Eraser
Insight Eye
http://www.insighteye.com
Subject Author Views Date
Thread Script Problem Eraser 4998 Aug 28, 2001, 1:00 PM
Post Re: Script Problem
paulmach 4897 Aug 28, 2001, 1:17 PM
Post Re: Script Problem
Andy 4897 Aug 29, 2001, 12:54 AM
Thread Re: Script Problem
Wil 4876 Aug 29, 2001, 1:32 AM
Thread Re: Script Problem
Eraser 4877 Aug 29, 2001, 2:04 AM
Thread Re: Script Problem
Paul 4856 Aug 29, 2001, 5:11 AM
Post Re: Script Problem
Eraser 4859 Aug 29, 2001, 5:20 AM