<script language="JavaScript">
location = "hello-world.htm";
</script>
can be used even if header is already sent!
-elias
www.eassoft.cjb.net
"Jamie Saunders" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi,
>
> Is there a PHP function that will redirect the current page to another
url?
>
> e.g.
>
> if ($varTwo == $varOne) {
>
> URL redirection code
>
> } else {
>
> echo "You stay right where you are!";
> }
>
> Thanks.
>
>
> Jamie Saunders
> Mail: [EMAIL PROTECTED]
> Web: http://jamie-s.co.uk
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]