note 52124 added to language.types.array
| From: | jeffsplatcodedreadsplotcom at osu1 dot php dot net | Date: | Thu, 21 Apr 2005 16:16:33 +0000 |
| Subject: | note 52124 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88359@lists.php.net to get a copy of this message | ||
Beware that if you're using strings as indices in the $_POST array, that periods are
transformed into underscores:
<html>
<body>
<?php
printf("POST: "); print_r($_POST); printf("<br/>");
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];
?>">
<input type="hidden" name="Windows3.1" value="Sux">
<input type="submit" value="Click" />
</form>
</body>
</html>
Once you click on the button, the page displays the following:
POST: Array ( [Windows3_1] => Sux )
----
Manual Page -- http://www.php.net/manual/en/language.types.array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52124
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52124&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52124&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52124&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52124&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52124&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52124&report=yes
Search -- http://master.php.net/manage/user-notes.php