I was able to do a check box inside a form like this:
echo "input type=checkbox name=ship_no[] value=$SHIP_NUMBER";
This loads an array $ship_no[] with the checked values for $SHIP_NUMBER. Then submit the form. On the target page, I extracted the data from the array with the list function and used the foreach function to iterate through the array like this:
while (list ($array_key, $ship_number) = each ($ship_no))
foreach ($ship_no as $ship_number) {
\do whatever with your variable $ship_number
}
To pass the array $ship_no[] to another script without a form, you could serialize the array, url-encode it , pass it with a header as a string
//passing arrays to another page is tough.. it was giving me problems here, so I'm going to send a string instead
$ship_serial = serialize($ship_no);
$ship_serial = urlencode($ship_serial);
header("Location:/ship/pdf_monuments.php?ship_serial=$ship_serial");
And here is what I did on the target page to put the array back togather.
//ok.. in the previous page we serialized and urlencoded so we could pass an array value .. now we unserialize and stip slashes
$ship_serial=stripslashes($ship_serial);
$ship_serial = unserialize($ship_serial);
$ship_no=$ship_serial;
This again yields an array $ship_no[].
Hope this helps!