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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC