I have a form element named product_id[] its an array. Eg.
<input type="hidden" name="product_id[]" value="1" />
<input type="hidden" name="product_id[]" value="2" />
In our development server when I do
print_r($_POST['product_id']);
I get all my product id values. When I try to do the same in our live server just the string "Array" is printed in the screen. I tried changing ENCTYPE in my form without any luck. When I changed to GET I am getting all my values printed in my URL, but when I do print_r($_GET['product_id']) I am getting same as post. So, i hope this should be something to do with PHP $_POST and $_GET. Is there any extension or module that I am missing in my live server?
Can anyone please shed some light on it?
Thank you,
var_dump. What's the output?print_rnever outputs the string "Array". Maybe you wrote justprintby mistake.