Afficher un message
Vieux 08/10/2007, 07h40   #5
David Quinton
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: php redirect doesnt work

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>
  Réponse avec citation
 
Page generated in 0,05306 seconds with 9 queries