php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21827 form post magic variables clumped together
Submitted: 2003-01-22 18:18 UTC Modified: 2003-02-20 08:02 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: sol at zewy dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
 [2003-01-22 18:18 UTC] sol at zewy dot 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

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-22 18:26 UTC] sol at zewy dot 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-02-13 00:43 UTC] sniper@php.net
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.

 [2003-02-19 07:59 UTC] steve at bluearena dot com
Upgrading to 4.3.2-dev has fixed the bug for me. Many thanks.
 [2003-02-20 08:02 UTC] sniper@php.net
No feedback, and as the previous comment said it works
fine with latest snapshot -> closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 09:01:27 2024 UTC