in reply to HTTP headers and redirection
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTTP headers and redirection
by student (Novice) on Nov 11, 2004 at 04:17 UTC | |
by BUU (Prior) on Nov 11, 2004 at 04:26 UTC | |
by chb (Deacon) on Nov 11, 2004 at 09:08 UTC | |
|
Re^2: HTTP headers and redirection
by student (Novice) on Nov 11, 2004 at 04:19 UTC | |
by nedals (Deacon) on Nov 11, 2004 at 07:29 UTC | |
by student (Novice) on Nov 11, 2004 at 16:49 UTC | |
by nedals (Deacon) on Nov 11, 2004 at 17:31 UTC | |
by student (Novice) on Nov 11, 2004 at 20:48 UTC |