|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-25 14:18 UTC] salathe@php.net
-Status: Open
+Status: Bogus
[2010-11-25 14:18 UTC] salathe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
Description: ------------ If a the <name>-tag of an <input> contains a dot, if is transferred to an underscore. I googled all around, but can't find anything. I wonder because: $test = array( 'title_image.img'=>'bla'); works. So why it is converted? Is it a bug or a feature :-)? Test script: --------------- <html> <head> <title>Test</title> </head> <body> <pre> <?php echo $_FILES['title_image.img']['name']; var_dump( $_FILES); ?> </pre> <form name="form" method="post" action="" enctype="multipart/form-data"> <input type="file" name="title_image.img" /> <input type="submit" name="save" value="Speichern" /> </form> </body> </html> Expected result: ---------------- array(1) { ["title_image.img"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } } Actual result: -------------- Notice: Undefined index: title_image.img in /media/DATA/home/mschmitz/public_html/customer/uni/fm/tischlerei/test.php on line 9 array(1) { ["title_image_img"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } }