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(); # [...]
|
---|
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 |
In Section
Seekers of Perl Wisdom