You are on page 1of 1

<fieldset>

<input type = "checkbox" name = "rating[0]" value = "Homepage">Homepage


<input type = "checkbox" name = "rating[1]" value = "Facilities"> Facilities
<input type = "checkbox" name = "rating[2]" value = "Reservation"> Reservati
on
<input type = "checkbox" name = "rating[3]" value = "Contact"> Contact
<input type = "checkbox" name = "rating[4]" value = "current"> The current o
ne
</fieldset>

$ratings = NULL;
$post_rat = $_POST['rating'];
foreach($post_rat as $v){
if(next($post_rat) $ratings .= $v.'|';
else $ratings .= $v
}

$ratingsString=$row['rating'];
STRING FROM DATABASE
$ratingsArray=explode(',' , $ratingsString);

//COMMA SEPERATED VALUE

You might also like