Greg wrote:
> The correct way to do this in PHP is to use header ("Location...
> Example
> <?PHP
>     execute a bunch of code
>    ......
> 
>    header ("Location: script2.php");
> ?>
> However, that won't work if your script has already output a header,

That is why I like my "improper" use better because most browsers do not 
care what you do with the html code. Sometimes proper is not the best way.

Consider this snip of messed up html code, it works in FireFox 2,3 and 
Opera ... not sure about IE since I don't have access to IE at the moment.

######### Start #########
<html><head><title>This Page is just wrong :)</title></head><body>This 
is some messed up html</body></html>
<p>
<head><meta http-equiv="refresh" content="3; url=script3.php"></head>
forwarding is 3,2,1
</p>
######## End #########

This example is a bit extreme but a simple warning or note message from 
an executing function will stop header() but it will not stop the above 
forwarding.....

Reply via email to