#21827 [Opn->Fbk]: form post magic variables clumped together

From: Date: Thu, 13 Feb 2003 06:43:46 +0000
Subject: #21827 [Opn->Fbk]: form post magic variables clumped together
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32981@lists.php.net to get a copy of this message
ID: 21827 Updated by: sniper@php.net Reported By: sol@zewy.com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.3.0 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip I can not reproduce this with PHP 4.3.1-dev. Previous Comments: ------------------------------------------------------------------------ [2003-01-22 18:26:39] sol@zewy.com Here's how to stop the clumps (workaround) 1. Always have the first form variable have a name 5 or more letters 2. Don't have a name on the submit button 3. Have the value of any hidden field 4 or more letters or numbers -Sol ------------------------------------------------------------------------ [2003-01-22 18:18:35] sol@zewy.com Hello, When I post a html form with 3 hidden fields, with 3 or less alphanumerics as the values, and 4 or less alphanumerics as the NAME of the first field, and a submit button having a name value, the first field variable has clumped all the other post data in it, instead of just the magic variable for field 1 like it should. Using phpinfo, there is _ENV["+"] after _ENV["REMOTE_PORT"] that shows the telltale clump, or a line and a square when the form does not meet the above situation. I do not know what this _ENV["+"] is but think it's a clue. There's also _SERVER["+"] and in the Environment a plain + after REMOTE_PORT that will be the name of my hidden field 1 with the clump data. I have seen many other complaints in the bug section about variables missing or broken, but noone tracked down the cause as well as this. It takes 3 simultaneous conditions. You can see this in action at http://www.zewy.com/phpclump.php I'm going to put a hidden field with 1000 as the value on every page as my work-around. 999 didn't work, it's only 3 alphanumerics. If you could find a fix it would be appreciated. BTW, one day, it's my dream to have millions of $$$ and donate it to open source developers.. You make the world a better place. Thanks ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21827&edit=1

« previous php.bugs (#32981) next »