• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI 3.0.1 bug with form submit

#1
Bug 
When I using form submit it has returned weird result.



a input key name is 'UTF-8' char set string



and here is my code in view file



<form action="http://localhost/array_test/post_print" method="post">

    <input type="hidden" name="アオ" value="blue">
    <input type="hidden" name="アカ" value="red">
    <input type="submit">
</form>




and this is a 'post_print' function in array_test file



function post_print()
{
   print_r($_POST);
}




JUST ONLY PRINT_R!



and it has return 



Array
(
   [アオ] => blue
   [アカ] => red
   [0] => red
)




What is [0] key? Where did that came from?



It has appeared with last UTF-8 key's value when I using UTF-8 key.



Is this a bug?
Reply


Messages In This Thread
CI 3.0.1 bug with form submit - by dmshin - 11-01-2015, 10:17 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.