Re: Redirecting A Webpage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> escribió en el mensaje
news:419CBF5F.3000001@xxxxxxxxxxxxxxxxx
> 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. :)

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux