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@xxxxxxxxx>
To: "Michael A. Peters" <mpeters@xxxxxxx>
Cc: <chris_payne@xxxxxxxxxxxxxxx>; <php-general@xxxxxxxxxxxxx>
Sent: Monday, May 18, 2009 7:48 PM
Subject: Re: 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php