I've had a quick look at your site, I think I know what you're getting at...
You're on the right track by setting up your checkboxes as an array, so you can easily manipulate the selected values in the processing script. The name of all of your checkboxes will be the same, it's only the value that needs to change. Therefore, something like:
<?php
echo $sdate." - ".$edate." - Price from ".$price;
echo "<input type=\"checkbox\" name=\"accommodation[]\" value=\"".$accommodationName."\" UNCHECKED>";
?>
should give you the correct HTML. Then, in the processing script:
<?php
foreach($_POST['accommodation'] as $accommodationName){
//do whatever you need to do
}
?>
(I've assumed your Form is using the POST method)
Hope this helps! 
|