#20024 [NEW]: cut first 4 letters in variables
| From: | netim at icentrum dot pl | Date: | Tue, 22 Oct 2002 10:46:16 +0000 |
| Subject: | #20024 [NEW]: cut first 4 letters in variables | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-23023@lists.php.net to get a copy of this message | ||
From: netim@icentrum.pl
Operating system: windows + linux
PHP version: 4.2.3
PHP Bug Type: Arrays related
Bug description: cut first 4 letters in variables
--- 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 bug report at http://bugs.php.net/?id=20024&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20024&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20024&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20024&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20024&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20024&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20024&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20024&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20024&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20024&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20024&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20024&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20024&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20024&r=isapi