i am new to this forum and i am super newbie i wonder if any one could give me a hand on this.
i have this site where users check boxes on my site, and i want to pass the value to another page but not all the values.
i only want to pass the air conditioning, private pool and shared pool if they are checked.
here is the code:
Code: Select all
<?
$arr=array("hob/stove","oven","fridge/freezer","fridge","microwave","dishwasher","washing machine","tumble drye","iron/ironing board","cable tv","satellite tv","tv","telephone","internet access","central heating","air conditioning","room fans","cot","high chair","barbecue","private pool","pool heating","shared pool","pets accepted");
foreach($arr as $val){
$val1=$this->nl->facility_id;
if($val){
$vv=explode(",",$val1);
}
$check='';
if(in_array($val,$vv)){
$check="checked=\"\"";
}
?>
<input type="checkbox" name="facility_id[]" value="<?=$val?>" <?=$check?>>
<?=$val?><br />
<?
}
?>Warm regards Birken