|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23289 variables from form doest not works
Submitted: 2003-04-20 19:28 UTC Modified: 2003-04-20 19:32 UTC
From: alexeytarasov at mail dot primorye dot ru Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.1 OS: Win2000/WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: alexeytarasov at mail dot primorye dot ru
New email:
PHP Version: OS:


 [2003-04-20 19:28 UTC] alexeytarasov at mail dot primorye dot ru
variables from form don't pass

when I launch this code

<? if (!@$name):?>
<form name="form1" method="post" action="test.php">
  <input name="name" type="text" id="name"><br>
  <input type="submit" name="Submit" value="Submit">
<? 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-20 19:32 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See 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:32 UTC]
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)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 13 08:01:29 2024 UTC