> Kinda off topic here, just checking to see If I am on the right track with > this > > <input type="checkbox" name="abb" value="<?php echo $myrow['abb'] ?>"> > > the result should be : > > IF the record contains the field "abb" and it has a value of 1 > then it will > be checked off for viewing.
No, that wouldn't work....to have a checkbox autochecked the HTML must be similar to <input type="checkbox" name="abb" value="<?php echo $myrow['abb']; ?>" checked> So a sample coding might be <input type="checkbox" name="abb" value="<?php echo $myrow['abb']; ?>" <?php if ($myrow['abb']) { echo 'checked'; } ?>> Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php