#20024 [Com]: cut first 4 letters in variables
| From: | vasja dot laharnar at guest dot arnes | Date: | Wed, 19 Feb 2003 23:23:50 +0000 |
| Subject: | #20024 [Com]: cut first 4 letters in variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33595@lists.php.net to get a copy of this message | ||
ID: 20024
Comment by: vasja dot laharnar at guest dot arnes
Reported By: netim at icentrum dot pl
Status: Closed
Bug Type: Arrays related
Operating System: windows + linux
PHP Version: 4.2.3
New Comment:
Has this bug been fixed in version 4.3.0? I still have those 4 letters
missing... I'm using a poll script by www.proxy2.de and when I try to
post options to a poll it cuts the first 4 letters off. Please inform
me by email.
Previous Comments:
------------------------------------------------------------------------
[2002-10-22 05:46:58] derick@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2002-10-22 05:46:16] netim at icentrum dot pl
--- file a.php
<form action="a.php" method="POST" name="form">
<input type="text" name="aaaa[]" value="1234567890">
<input type="submit">
</form>
<pre>
<?
var_dump($_POST);
?>
</pre>
-- end file a.php
While we send this form
we will see :
array(1) {
["aaaa"]=>
array(1) {
[0]=>
string(6) "567890"
}
}
Variable $_POST["aaaa"][0] is "567890"
and why not "1234567890"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20024&edit=1