I use Header php-function for redirection in me pages!
Code like
CODE
<meta http-equiv="refresh" content="5;url=http://www.mysite.com/nextpage.html">
can be stopped by Escape button pressing!!!
About php function - HeaderThe special case is the "Location:" header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless some 3xx status code has already been set.
CODE
<?php
header("Location: http://www.example.com/"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
Note: HTTP/1.1 requires an absolute URI as argument to Location: including the scheme, hostname and absolute path, but some clients accept relative URIs.
You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and dirname() to make an absolute URI from a relative one yourself:
CODE
<?php
header("Location: http://" . $_SERVER['HTTP_HOST']
. rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
. "/" . $relative_url);
?>
Note: Session ID is not passed with Location header even if session.use_trans_sid is enabled.
It must by passed manually using SID constant.
View full description about Header function at
http://php.rinet.ru/manual/ru/function.header.php with some examples.
Comment/Reply (w/o sign-up)