Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: CGI - Keep'em quiet page?

by koolade (Pilgrim)
on Jun 16, 2001 at 21:38 UTC ( [id://89071]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI - Keep'em quiet page?
in thread CGI - Keep'em quiet page?

Above line simply calls a Perl file that uses CGI.pm "redirect" function to redirect the browser to the desired page.

That won't work because CGI.pm's redirect() prints out HTTP headers to redirect the client. But you've already printed out HTTP headers, so the redirect headers will be included in the text rendered by the browser. So the user will see:

Please wait
Status: 302 Moved
location: http://path/to/redirect

If you'll want to redirect in that manner you'll have to use JavaScript.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89071]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found