Hi
I wonder if someone can help, I have an edit form where I’m getting data from database and displaying and amending. The checkboxes work fine when I’m displaying the data but I can NOT seem to post checkbox value back to database. The form doesn’t seem to post the value it submits fine.
[code=php]$query2 = “SELECT query works fine
$result2 = mysql_query ( $query2 ) or die ( mysql_error () );
while ( $row = mysql_fetch_array ( $result2 ) ) {
extract ( $row );
<input type=”checkbox” name='<?php echo $row[‘region’]; ?>’ value='<?php echo $row[‘uid’]; ?>’ <?php if(! empty($row[‘uid’])) echo ‘checked’; ?> />
<?php }?>
Many thanks
Zed