php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44470 problem with $_POST array and over 64 chars form element names
Submitted: 2008-03-18 16:19 UTC Modified: 2008-03-22 22:14 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: kenny at amik dot ru Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.5 OS: Linux 2.6.22.17-0.1
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: kenny at amik dot ru
New email:
PHP Version: OS:

 

 [2008-03-18 16:19 UTC] kenny at amik dot ru
Description:
------------
long name (more than 64 characters) in form's elements(text, select) did not appear in $_POST array after form was submitted 

Reproduce code:
---------------
<?php 
echo "<pre>";
print_r($_POST);
echo "</pre>";
?>
<form action="sort.php" method="post">
	<input value="Save" type="submit">
	<select name="ucResumeSearchForm:ucResumeSearchFormGeoBase:MXResumeSrchCriteria">
			<option  value="US">United States</option>
	</select>
	<input type="text" name="ucResumeSearchForm:ucResumeSearchFormGeoBase:MXResumeSrchCriteria:2" value="test">
</form>

Expected result:
----------------
all data posted to the $_POST array

Actual result:
--------------
$_POST is empty array

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-18 21:47 UTC] jani@php.net
Are you sure it's not those ':' chars in the name? (I can't remember for sure but I think it's not allowed..)
 [2008-03-19 13:05 UTC] kenny at amik dot ru
I try this one:
...
<select name="ucResumeSearchForm:ucResumeSearchFormGeoBase:MXResume">
     <option  value="US">United States</option>
</select>
...

select name length is 53 chars - and print_r($_POST); printed
Array
(
    [ucResumeSearchForm:ucResumeSearchFormGeoBase:MXResume] => US
)
 [2008-03-19 13:10 UTC] kenny at amik dot ru
Sorry, I forgot - apache 2.2.8 installed on our server
 [2008-03-22 14:08 UTC] kenny at amik dot ru
Okey. Thanks a lot! The issue was about Suhosin patch and it's 
suhosin.request.max_...
suhosin.post.max_...
and etc maximum length constraints

I think the bug is closed =) I'm really happy
 [2008-03-22 22:14 UTC] jani@php.net
Great that you could figure it out on your own.
btw. It's always good to mention if you're using 3rd party patches / extensions. This would have been figured out earlier that way. :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 09:01:31 2025 UTC