#23289 [Bgs]: variables from form doest not works
| From: | pollita@php.net | Date: | Mon, 21 Apr 2003 00:32:57 +0000 |
| Subject: | #23289 [Bgs]: variables from form doest not works | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37932@lists.php.net to get a copy of this message | ||
ID: 23289
Updated by: pollita@php.net
Reported By: alexeytarasov at mail dot primorye dot ru
Status: Bogus
Bug Type: IIS related
Operating System: Win2000/WinXP
PHP Version: 4.3.1
New Comment:
As of PHP 4.2 the default value for register_globals is off. Either
turn on register_globals or access form elements via the $_GET, $_POST,
or $_REQUEST arrays. ($HTTP_*_VARS in PHP 4.2)
Previous Comments:
------------------------------------------------------------------------
[2003-04-20 19:32:06] edink@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
.
------------------------------------------------------------------------
[2003-04-20 19:28:17] alexeytarasov at mail dot primorye dot ru
IIS 5
variables from form don't pass
when I launch this code
<? if (!@$name):?>
<form name="form1" method="post" action="test.php">
Name<br>
<input name="name" type="text" id="name"><br>
<input type="submit" name="Submit" value="Submit">
</form>
<? die; endif;
echo "it works!";
?>
Message "it works!" never appears, because variable $name will never be
defined, whatever I did.
This problem appears in PHP 4.2 and PHP 4.3, but not in PHP 4.1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23289&edit=1