I have a form that passes variables and all is well except the check box variables
here is the first page I introduce the check boxes...
<input type="checkbox" name="months_to_receive_newsletters[]" value="jan">
<input type="checkbox" name="months_to_receive_newsletters[]" value="feb">
<input type="checkbox" name="months_to_receive_newsletters[]" value="mar">
and so on....
On the second page I get the variables in an array... still going fine:
using this code
<?
foreach($months_to_receive_newsletters as $months) {
?>
<input type="hidden" name="months_to_receive_newsletters[]" value="<? echo "$months" ?>">
<?
}
?>
On the third page when I try to echo the results to print, It prints "Array".
I have tried every way I can think of and looked around.
I want to print the results on this page and send them to the last step form handling...
<?echo "$months_to_receive_newsletters"?>
any Ideas..
Am I going about this in the right way?
Thanks in advance....