From:             neel dot basu dot z at gmail dot com
Operating system: Debian
PHP version:      5.2.4
PHP Bug Type:     Filter related
Bug description:  PHP converts all dot(.) in from field names to Underscore(_)

Description:
------------
If form field name contains any dot(.) PHP automatically 
Stores it into $_POST variable after converting all dots to _


Reproduce code:
---------------
<?php
if(count($_POST) > 0){
print_r($_POST);
}
?>
<form method="POST" action="">
<input type="text" name="a.b" value="Sample" />
<input type="Submit" name="submit" value="Submit">
</form>

Expected result:
----------------
Array
( 
  [a.b] => Sample 
  [submit] => Submit
)

Actual result:
--------------
Array
( 
  [a_b] => Sample 
  [submit] => Submit
)

-- 
Edit bug report at http://bugs.php.net/?id=42677&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42677&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42677&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42677&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42677&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42677&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42677&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42677&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42677&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42677&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42677&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42677&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42677&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42677&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42677&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42677&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42677&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42677&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42677&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42677&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42677&r=mysqlcfg

Reply via email to