Re: Redirecting A Webpage
| From: | Felipe Alcacibar | Date: | Fri, 19 Nov 2004 06:11:28 +0000 |
| Subject: | Re: Redirecting A Webpage | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24996@lists.php.net to get a copy of this message | ||
To redirect a page, you can use this 3 methods...
php:
the header function:
header("Location: some_page.php");
html:
the meta tag:
<meta http-equiv="refresh" content="0; url=some_page.php">
javascript:
the location.href property
<script language="javascript" type="text/javascript">
location.href='some_page.php';
// also you can refresh by seconds
window.setTimeout('location.href="some_page.php";', 600); // 6
secs....refresh to some_page.php
</script>
good luck... x)
"Allen D. Tate" <atate@ohio.lib.in.us> escribió en el mensaje
news:419CBF5F.3000001@ohio.lib.in.us...
> I would like to setup an index.php file to redirect to another .php file
> as soon as it is invoked, like [response.redirect] does in Active Server
> Pages. Does anyone know this cammand off the top of their head? Thanks
> in advance. :)