I am sending data from A.cgi
to B.cgi
. B.cgi
updates the data in the database and is supposed to redirect back to A.cgi
, at w
Location:
is a header and headers must come before all ordinary output, that's probably your problem. But doing this manually is unneccessarly complicated anyways, you would be better of using the redirect function of CGI.pm
Use CGI's redirect method:
my $url = "http://Travel/cgi-bin/A.cgi";
my $q = CGI->new;
print $q->redirect($url);