Re: Help with PHP processing form checkboxes needed :-(
| From: | chris_payne at danmangames dot com | Date: | Tue, 19 May 2009 06:33:49 +0000 |
| Subject: | Re: Help with PHP processing form checkboxes needed :-( | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292768@lists.php.net to get a copy of this message | ||
Hi there,
Thanks to everyone who replied about the checkboxes, I must have had brainrott or something as the answer was so simple - just delete the entries for the items on the page and put them back in again. Simple and works like a charm :-)
Regards
Chris Payne
----- Original Message ----- From: "kranthi" <kranthi117@gmail.com>
To: "Michael A. Peters" <mpeters@mac.com>
Cc: <chris_payne@danmangames.com>; <php-general@lists.php.net>
Sent: Monday, May 18, 2009 7:48 PM
Subject: Re: [PHP] Help with PHP processing form checkboxes needed :-(
1. every time the form is submitted.. generate the list of all the check boxes which are checked and overwrite the previous value in the database. 2. get the list of all entries from the database see if the corresponding check box is checked.. if so leave it as it is, if not remove it... this depends much on the database implementation. obviously this is a one to many relationship. if i use a single field with coma separated values i prefer the former if i use a different table to store the relationships(one relation per row) i prefer the later. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php