#29721 [Bgs]: Dynamic variables wrong after a POST
| From: | me at autourdupc dot com | Date: | Wed, 18 Aug 2004 07:55:05 +0000 |
| Subject: | #29721 [Bgs]: Dynamic variables wrong after a POST | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64820@lists.php.net to get a copy of this message | ||
ID: 29721
User updated by: me at autourdupc dot com
Reported By: me at autourdupc dot com
Status: Bogus
Bug Type: Variables related
Operating System: Windows
PHP Version: 4.3.8
New Comment:
I use var_dump($_POST);
I think you do not understand my request.
Error message displayed are good.
The problem is that I put a value on the first field and after the POST
all others fields are filled with this same value. Normally, thez should
be empty or on error.
I think there is a bug :
If you put "a" on the first field, all the post displayed by the
var_dump are good but the values displayed by the dynamic construction
of the variables are wrong.
I don't understand why the result is correct is I use a static name for
my variables and the result is different if I use a dynamic name.
Please try again my example and see !
May be it is not a bug concerning the POST but a bug concerning dynamic
variables.
Previous Comments:
------------------------------------------------------------------------
[2004-08-17 15:42:32] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Use var_dump($_POST); and you'll see that variables are on their
places.
Debug you code.
------------------------------------------------------------------------
[2004-08-17 15:35:33] me at autourdupc dot com
Description:
------------
Using dynamic variables.
After a POST, variables initialized with a NULL value are not NULL.
Reproduce code:
---------------
http://www.autourdupc.com/bug.php.txt
Expected result:
----------------
If you enter a value in the first field and leave others blank.
After the post, only the first value must have the value.
Actual result:
--------------
Actually, all the variables have the same value.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29721&edit=1