Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: problem with redirecting to a cgi page

by CardinalNumber (Prior)
on Jul 03, 2008 at 01:14 UTC ( #695264=note: print w/ replies, xml ) Need Help??


in reply to problem with redirecting to a cgi page

[update]As grep said,[/update] you're sending a full set of headers (and even content) before your code gets to send the redirect header. You need to have things in this order:

#!/usr/bin/perl use CGI; my $cgi = new CGI; if ($cgi->param('smbt')) { &creat_cooke(); # sic exit print $cgi->redirect('http://example.com/path/Welcome.cgi'); } print $cgi->header(); # [...]


Comment on Re: problem with redirecting to a cgi page
Download Code
Replies are listed 'Best First'.
Re^2: problem with redirecting to a cgi page
by srinivas_rocks (Sexton) on Jul 03, 2008 at 19:57 UTC
    Thanks a lot Monks

    That made the trick

    Srinivas.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2015-07-29 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls