I have a very strange behaviour with POST keys.
Consider a test:
wtf.html:
=== Cut ===
<form action="eh.php" method="POST">
<input type="checkbox" name="many spaces and. . dots. . "/>
<input type="submit" value="Submit">
</form>
=== Cut ===
eh.php:
=== Cut ===
<?php
print_r($_POST) ;
?>
=== Cut ===
When we check the checkbox and click the Sumbit button we will see:
Array ( [many_spaces_and ____dots____] => on )
It is send to server normally:
many+spaces+and .+.+dots.+.+=on
but in $_POST (or $HTTP_POST_VARS ) we see what we see. Any ideas?
Consider a test:
wtf.html:
=== Cut ===
<form action="eh.php" method="POST">
<input type="checkbox" name="many spaces and. . dots. . "/>
<input type="submit" value="Submit">
</form>
=== Cut ===
eh.php:
=== Cut ===
<?php
print_r($_POST) ;
?>
=== Cut ===
When we check the checkbox and click the Sumbit button we will see:
Array ( [many_spaces_and ____dots____] => on )
It is send to server normally:
many+spaces+and .+.+dots.+.+=on
but in $_POST (or $HTTP_POST_VARS ) we see what we see. Any ideas?
Comment