CI 3.0.1 bug with form submit |
-
dmshin Newbie

-
Posts: 1
Threads: 1
Joined: Nov 2015
Reputation:
0
11-01-2015, 10:17 PM
(This post was last modified: 11-03-2015, 07:34 PM by dmshin.)
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?
|