My problem is I'm passing an array to two pages in a form. I have multiple check boxes that are passed to my action page. Then the array is being passed to my second action page in a hidden field. When I try to display the array on my second action page, all I get is "ar" or "array" - no matter what I try. Yet, if I check the array on the first action page, everything works fine. What am I doing wrong in passing the array to the second action page?
Form page:
<FORM ACTION="action_page.php" METHOD="Post" Name="Registration_Form">
<INPUT TYPE="Checkbox" NAME="crn[]" value="<?php echo $crn; ?>">
<input name="continue" type="submit" class="textareabox" value="Continue to Payment Information">
Action Page :
$crn = $_POST['crn'];
<FORM ACTION="action_page2.php" METHOD="Post" Name="PaymentRegistration">
<input type="hidden" name="crn" value="<?php echo $crn; ?>">
<input name="continue" type="submit" class="textareabox" value="Submit Registration">
Action page 2 :
$crn = $_POST['crn'];
$crn_count = count($crn);
for ($counter=0;$counter<$crn_count;$counter++){
echo $crn[$counter];
} // End For