#33485 [Opn->Bgs]: isset() doesn't work with a form submission
| From: | sniper@php.net | Date: | Mon, 27 Jun 2005 06:41:47 +0000 |
| Subject: | #33485 [Opn->Bgs]: isset() doesn't work with a form submission | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81058@lists.php.net to get a copy of this message | ||
ID: 33485
Updated by: sniper@php.net
Reported By: devon at 16oranges dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: WinXP
PHP Version: 5.0.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-06-27 07:32:10] devon at 16oranges dot com
Description:
------------
Attempting to use isset() to find out when a user's submitted a form,
and if they have, then I give them particular output. This works on
Linux using old PHP 4.x, but I don't have access to that anymore. This
doesn't work on WinXP (with SP2, if that matters).
I suspect this is related to bug #29883 @
http://bugs.php.net/bug.php?id=29883 (which is
supposed to be fixed),
because I tested for it and it comes out with the unexpected result.
I'm 110% baffled.
- Devon
Reproduce code:
---------------
I'm using PHP 5.0.4 on WinXP (with SP2 if that matters at <form
method="get" action="this_file.php">
<input type="submit" value="ad" name="adicion"
id="adicion" />
</form>
<?php
if(isset($adicion)) {
echo "expected result after form is submitted.";
} else {
echo "Only seen before form is submitted.";
}
?>
Expected result:
----------------
expected result after form is submitted.
Actual result:
--------------
Only seen before form is submitted.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33485&edit=1