Tii has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use a Perl script to print some redirect HTML after processing a form.
When I use the following code:
print <<"EOF"; <HTML> <HEAD> <META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=http://my.url.com/page.html\"> </HEAD><BODY></BODY> EOF print end_html;
The page doesn't redirect, but just spits out my HTML. The result page literally looks like this:
<HEAD> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://my.url.com/page.html"> </HEAD><BODY></BODY> </BODY></HTML>
(I used my.url.com just for this example.) I've also tried printing "Content-type: text/html" but that didn't make any difference. BTW: I'm also using CGI.pm.
Can someone shed some light on this?
Gratefully,
Tii
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Need HTML Redirect
by Fastolfe (Vicar) on Sep 29, 2000 at 00:07 UTC | |
by Tii (Monk) on Sep 29, 2000 at 00:14 UTC | |
Re: Need HTML Redirect
by le (Friar) on Sep 29, 2000 at 00:07 UTC | |
Re: Need HTML Redirect
by arturo (Vicar) on Sep 29, 2000 at 00:10 UTC | |
by merlyn (Sage) on Sep 29, 2000 at 00:31 UTC | |
by Tii (Monk) on Sep 29, 2000 at 00:43 UTC |