Hi here the the values which are from the table will be stored in an session....before that which is displayed with an checkbox.......but what i want to do here is i want those values which are clicked should be stored in a session and i want to display them in the next page........... help me
<?php
include('database.php');
$stype=$_POST['category'];
if($stype=="service_category")
{
$result = mysql_query("SELECT * FROM service_category ");
while($row = mysql_fetch_array($result))
{
?><input type="Checkbox" id="a[]" value="servicec"><?echo $row['servicec'];
echo "<br />";
$a[i]=$row['servicec'];
$i++;
$_SESSION['a1']=$a[i];
// echo $_SESSION['a1'];
}
}