i do send headers and i see the refresh happening...
the refresh is just to a normal html page...that also has
the whole Content type: at the top... as i said before..
it works just fine with mozilla or firebird or galeon...just
not IE. I have to go now....but i will post more code when
i get back...

Thanks for the help,
jd

On Wed, 2003-07-23 at 08:31, Charles K. Clarkson wrote:
> jdavis <[EMAIL PROTECTED]> wrote:
> :
> :   The code below is from a cgi scrip....
> : this code makes a html page by calling &FP
> 
>     What is in 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
> 
>     When you send anything to the browser you
> must tell it what you're sending. This is called
> a header. Much of the information in meta tags
> can be sent this way. The header is separated by
> a blank line from the body of the page.
> 
>     For example (notice the blank line):
> 
> Content-Type: text/html; charset=ISO-8859-1
> 
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE html
>       PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
>       "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml"; lang="en-US">
> <head><title>AbqRlty</title>
> <meta http-equiv="Refresh"
> content="0,URL=http://www.mysite.com/feature.html"; />
> </head>
> <body> . . . 
> 
>     It is likely that your script is not sending
> headers to the browser.
> 
> 
> : 
> : while trying to redirect... also..the redirect
> : works just fine for mozilla/Linux but fails on
> : ie/windows. Any ideas....
> : 
> :     elsif($in{my_action} eq "fp"){
> 
>     This indicates either the use of cgi-lib.pl
> or a hand rolled form parser. Whether this is
> your script or something you inherited, you can
> use CGI.pm mixed in with the current script.
> 
>     The page below might become:
> 
> use CGI;
> my $q = CGI->new();
> 
> print
>     $q->header(),
>         $q->start_html(
>             -title  => 'AbqRlty',
>             -head   => [
>                 $q->meta( {
>                     http_equiv  => 'Refresh',
>                     content     =>
> '0,URL=http://www.mysite.com/feature.html',
>                 } ),
>             ]
>         ),
>         $q->p( 'One Moment Thinking......' ),
>         $q->end_html();
> 
> 
>     If you're not hung up on the "Thinking. . ." message,
> you could redirect the page from the header. The browser
> will use its own message.
> 
> print $q->redirect('http://www.mysite.com/feature.html');
> 
> 
> HTH,
> 
> Charles K. Clarkson
-- 
jdavis <[EMAIL PROTECTED]>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to