Re: Send output before header location
| From: | (David) | Date: | Sun, 13 Jan 2002 07:59:42 +0000 |
| Subject: | Re: Send output before header location | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-80336@lists.php.net to get a copy of this message | ||
>How can I output before send header
>I see some site some output and after that it Jump to >other site
>Is that maked by header localtion ??
no, if there\'s output first, then it\'s not using header(\"Location:
whatever.php\"), because headers MUST be sent before any other output to the browser.
there are other ways to redirect a user to another page:
for example:
<meta HTTP-EQUIV=\"REFRESH\" content=\"0; url=http://www.yourdomain.com/index.html\">
you could use some javascript to do it too.