php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33485 isset() doesn't work with a form submission
Submitted: 2005-06-27 07:32 UTC Modified: 2005-06-27 18:40 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: devon at 16oranges dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.4 OS: 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: devon at 16oranges dot com
New email:
PHP Version: OS:

 

 [2005-06-27 07:32 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-27 08:41 UTC] sniper@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.


 [2005-06-27 18:40 UTC] devon at 16oranges dot com
Thanx. It'd be real nice if the manual would let people know about that change. I checked through http://us2.php.net/manual/en/function.isset.php before posting here for any changes like that, but nothing was mentioned.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 17:01:33 2024 UTC