note 76314 deleted from function.header by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: moehbass at gmail dot com 

----

It says above:
"Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. ..."

But check this out: this code runs fine: (take a closer look!)

...
put your html stuff here
...
Then this:

if(isset($_POST['ok'])) {
	if(isset($_POST['yesNo']))
		header('Location: http://www.google.com/');
	else
		header('Location: http://www.yahoo.com/');
}

You can see it live at:
http://labella-pizza.com/header.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.