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.
Printable View
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.
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";
thanks! :)