|
Posted by David Quinton on 10/08/07 06:40
On Mon, 08 Oct 2007 06:17:16 +0200, "J.O. Aho" <user@example.net>
wrote:
>You see this HTML that is on the top of your page, it will prevent the
>header() from work, as it has to be sent before any other output from a script.
I agree.
Move this stuff:
<html>
<head>
<title>Login</title>
</head>
<body>
<h2>Login</h2>
so it's above the opening form tag.
one other thing you *might* have to watch out for is:-
"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: "
(from <http://uk3.php.net/header>)
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
[Back to original message]
|