RE: [PHP-DB] Forms...
| From: | Bastien Koert | Date: | Wed, 09 Mar 2005 19:25:58 +0000 |
| Subject: | RE: [PHP-DB] Forms... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38832@lists.php.net to get a copy of this message | ||
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@mac.com> To: php-db@lists.php.net Subject: [PHP-DB] 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@hot-toast.com 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