|
-
Aug 27th, 2001, 07:22 AM
#1
Thread Starter
Member
redirecting in CGI
is there a way to redirect a user to another page in CGI?
i tried using:
location: file.cgi
and
print "location:file.cgi";
but I can't seem to let it work.
-
Aug 27th, 2001, 11:11 AM
#2
Black Cat
Set the Location HTTP header before sending anything else (besides any other HTTP headers), and finish the headers by adding two newline characters.
Perl:
Code:
print "Location: file.cgi\n\n";
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Aug 28th, 2001, 06:23 AM
#3
Thread Starter
Member
thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|