Hi all,
I have read many posts about this kind of issue but not a straightforward solution which i hope someone can post in reply to me.
I dynamically build a list of checkboxes which are either checked or unchecked:
<input type=\"checkbox\" name=\"objectname[$objid]\" value=\"$objid\" checked=\"$objchecked\" />
When I post my form:
if ($_POST['submitbutton']) {
I would like to:
a) insert a new record into my table where the checkbox is checked using the $objid as the main record value
b) delete a record from my table where the checkbox value is unchecked using the $objid as the main record value in the WHERE clause
Any snippets of code or links to tutorials would be GREATLY appreciated as I am now hitting my head against a brick wall.
Thank you in advance.
K