Reply to Re: php redirect doesnt work

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация