Date: 10/29/99
- Next message: Sascha Schumann: "Re: [PHP-DEV] Re: PHP 4.0 Bug #2614 NOT FIXED!!"
- Previous message: Brian Moon: "[PHP-DEV] Re: PHP 4.0 Bug #2614 NOT FIXED!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: dobosgy <email protected>
Operating system: Linux+Apache1.3.6
PHP version: 3.0.12
PHP Bug Type: Performance problem
Bug description: Incomprehensible Header() behaviour
Maybe a Netscape or a PHP3 bug?
This short code should echo "1" on every submit, because after
Header() the program shouldn't run and do anything.
On MSIE, lynx, and on 3 Amiga browsers it works fine, but on "all"
type and versions of Netscape it displays "2".
The problem can easily be solved by adding a parameter to the
$PHP_SELF like this:
Header("Location: $PHP_SELF?foo=bar");
The code:
<?
$var=1;
if (isset($butt)) {
Header("Location: $PHP_SELF");
$var=2;
}
?>
<html>
<head>
</head>
<body>
<form method="post" action="<?echo$PHP_SELF?>">
<?echo $var?>
<input type="submit" name="butt" value="OK">
</form>
</body>
</html>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sascha Schumann: "Re: [PHP-DEV] Re: PHP 4.0 Bug #2614 NOT FIXED!!"
- Previous message: Brian Moon: "[PHP-DEV] Re: PHP 4.0 Bug #2614 NOT FIXED!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

