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