It's a very strange error that i am facing.I have some html i.e below
<input type="checkbox" name="om[1]" value="10">
<input type="checkbox" name="om[2]" value="20">
<input type="checkbox" name="om[3]" value="30">
When i post this form and do
print_r($_POST['om'])
it gives just prints 'Array' as string
and if i do print_r($_POST['om'][0]) it gives A
and if i do print_r($_POST['om'][1]) it gives r
But if i do
print_r($_REQUEST['om'])
it display a proper array
Array
(
[1] => 10
[2] => 20
[3] => 30
)
Problem is when i am using $_POST for getting array values it not displaying, it works fine if posted value is not in array. But i can get all the required result with $_REQUEST['om'] even if they are array.
And it's happening only on server, working fine for localhost. Can anybody tell what can be the problem on server??
name="om[]"on each (without keys)variables_orderandrequest_ordersettings from the server? (You can useini_get()to read them if you don't have direct configuration access.)