Jason, this solved both the immediate jump problem and the 
conditional!  Wow.  Thanks.

So, it seems one cannot output any html before redirecting, since that 
requires the print "Content-type: text/html\n\n"; 
statement.  Interestingly, if I start with just a print "\n\n;", the 
program downloads (using IE, at least).

Thanks, again, Walt.



At 07:19 PM 7/7/2001 -0400, you wrote:
>From: "Jason Purdy" <[EMAIL PROTECTED]>
>To: "Walt Sanders" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>,
>         <[EMAIL PROTECTED]>
>Subject: Re: redirect how to?
>Date: Sat, 7 Jul 2001 19:19:06 -0400
>X-Mailer: Microsoft Outlook Express 5.50.4133.2400
>
>It's an exclusive OR situation:
>
>At the very beginning of your output, you can either output HTML (print
>'Content-type: text/html\n\n';) OR output a location (print 'Location:
>http://www.mysite.com\n\n';), but not both.
>
>I just recently learned this little trick: This is pretty useful to use when
>you're outputting from a form-fed CGI.  So the user doesn't keep 'reload'ing
>the resulting page, causing the script to execute again & again (ie: a
>voting script, database stuff, etc).  After you're done w/ your script, you
>just print a Location tag pointing to a purty response page and if the user
>hits 'reload', they're just reloading that page.
>
>Jason



Reply via email to