It is better if the two later (for $Sales and $Rate) is used with elsif instead of if. In that case the script won't process any further elsif or else if any of them applies.if ($Salesperson eq "") { print "Location: http://localhost/cgi-bin/c12ex3b.html\n\n"; } if ($Sales == "") { print "Location: http://localhost/cgi-bin/c12ex3b.html\n\n"; } if ($Rate == "") { print "Location: http://localhost/cgi-bin/c12ex3b.html\n\n"; }
In reply to Re: HTTP headers and redirection
by Kalaspuff
in thread HTTP headers and redirection
by student
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |