Re: PHP Redirect in the middle of code?
| From: | Steve Edberg | Date: | Mon, 10 Sep 2001 17:12:22 +0000 |
| Subject: | Re: PHP Redirect in the middle of code? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66783@lists.php.net to get a copy of this message | ||
I learn something every day, here :)
According to my McGraw-Hill HTML Programmer's Reference [please, no messages about HTML not being 'programming'!], the META tag _should_ only occur in the <HEAD> container. Of course, we all know how closely browsers adhere to the HTML specs ;P
-steve
At 1:00 PM -0400 9/10/01, Ken wrote:
At 08:11 AM 9/10/01 -0700, Steve Edberg wrote:-- +------------------------ Open source questions? ------------------------+ | Steve Edberg University of California, Davis | | sbedberg@ucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +----------- http://pgfsun.ucdavis.edu/open-source-tools.html -----------+Right off the top of my head, you have three options that I can see: (3) Use a META REFRESH tag. For example:Not necessarily true, the <head> part. My application outputs a <meta ...refresh...> line really late in the HTML document - definitely inside the <body> section - and the refresh seems to be working for all. - Ken kenzo@free-music.com<META HTTP-EQUIV="refresh" CONTENT="1;page.php">where 1 is the time (in seconds) before you want the redirect, and 'page.php' is where you want the redirect to. Of course, this tag needs to be in the <HEAD> section, so it might not help you much.