I use this format
<input name="right_eye" type="checkbox" value="1" <? if ($rows['right_eye']==1) { echo " CHECKED "; } ?>> Right Eye(s)
Bastien
From: Mark Benson <markbenson@xxxxxxx> To: php-db@xxxxxxxxxxxxx Subject: Forms... Date: Wed, 9 Mar 2005 19:12:31 +0000
Does anyone know if it is possible to have 'checkbox' elements in a form appear 'checked' or 'unchecked' when a page loads data from a MySQL data source? Can I use an attribute in the <input> tag to switch that?
--
Mark Benson
AIM - SilValleyPirate MSN - mark.benson@xxxxxxxxxxxxx Visit FlatPackMacs online: <http://fpm.68kmac.com> Visit my Homepage: <http://homepage.mac.com/markbenson>
"Introducing Macintosh Classic II - pick one out on your way past the trash!"
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php