RE: [PHP-DB] Check Boxes

From: Date: Mon, 29 Apr 2002 16:04:24 +0000
Subject: RE: [PHP-DB] Check Boxes
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18872@lists.php.net to get a copy of this message
I usually store the value as a 0 (unchecked) or a 1(checked) in a char(1) field. Then, in populating the form my input has something like <?PHP echo (fieldname==1?' CHECKED ':'';?> There are other ways of doing it. (Warning, I'm not actually LOOKING at my code at the moment so YMMV.) HTH, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -----Original Message----- From: Julio Cuz, Jr. [mailto:jcuz@rccd.cc.ca.us] Sent: Monday, April 29, 2002 10:33 AM To: php-db@lists.php.net; pgsql-php@postgresql.org Subject: [PHP-DB] Check Boxes Hi-- Does anyone have any suggestions, SAMPLES, or ideas on how to STORE, RETRIEVE, AND PROCESS values for "Check Boxes" w/PHP & Postgresql? Thanks! Julio Cuz, Jr. Riverside Community College jcuz@rccd.cc.ca.us -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#18872) next »