Posted by Carl Pearson on 01/16/07 17:38
John wrote:
> Hello,
>
>
> I have a php contact script and I want it to redirect to my homepage
> without using the standard header command.
>
>
> <?php
> header("location:http://www.johndoe.com/index.html");
> exit;
> ?>
>
>
>
>
> Does anyone know a way to do this?
You could do it on the client via javascript, but that would mean an
additional call to the server (assuming the redirection is going to
somewhere else on the same site):
function Redirect($Url = "/")
{
echo "<script
language='JavaScript'>document.location.href='".$Url."'</script>";
exit;
}
[Back to original message]
|