Can anyone shed any light here.
I've used the following to create an bunch of checkboxes from a database field. This works fine.
//Loop and echo category list from $sql1
$i = 1;
while ($row = mysql_fetch_array($result1)) {
$category = $row["category"];
$category = stripslashes($category);
$category=ucwords($category);
//echo $category;
?>
<font size="2">
<input type="checkbox" name="ascategory" value="$category">
<?php echo $category?>
<br></font>
<?php
$i++;
}
?>
How can I detect which values have been 'checked' so I can build insert statements with them?
I've tried the follwing but all I get is $category$category$category etc.