jdavis wrote:
> hello,
> The code below is from a cgi scrip....
> this code makes a html page by calling &FP
> this works, i know this because i can see
> Thinking.....
> printed in the browser right before redirect.
> problem is i get the error...
>
> Preamautre end of script headers
Your script is possibly dying before emitting headers. Is feature.html a
static HTML page or a CGI program? Check the web server error log.
>
> while trying to redirect... also..the redirect works just fine
> for mozilla/Linux but fails on ie/windows. Any ideas....
Are you talking client or server? The message above is generated by the
server, so it shouldn't matter what the client is.
>
>
> elsif($in{my_action} eq "fp"){
> &FP;
> print "<html><head><title>AbqRlty</title>\n";
> print "<meta http-equiv=\"Refresh\"
> content=\"0,URL=http://www.mysite.com/feature.html\">\n";
> print "</head><body>One Moment
> Thinking......</body></html>\n";
> }
That's not how you do a redirect from a CGI script.
META HTTP-EQUIV is a way of simulating HTTP response headers in static HTML
pages. Since you're generating the page dynamically, you can write your own
Location: header.
Use the CGI module's redirect() method.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]