Click to See Complete Forum and Search --> : delete record with a checkbox?


sanjuT
11-07-2003, 09:09 AM
I have a form where users can enter comments under a customer profile, and a history of all comments for that customer is also displayed on that screen in a table.

how difficult is it to have an extra column (in the history of comments table) that would contain a checkbox for every row (comment) and when the user submits the form, the comments that have a checked checkbox would delete?

THANKS!

chrismartz
11-08-2003, 06:02 PM
if you are using a database for this forum, have a column called active and if the check box is checked have the active column uncheck if its clear have the column in the database be checked

slyfox
11-18-2003, 07:21 AM
all you do is have a checkbox next to each record displayed(hard coded) and set the value of each checkbox displayed to the comment's id... on the execution page check for "checked" boxes and then delete records according to the values sent thru (comment id's)

Hope you this helps you

sanjuT
11-18-2003, 08:22 AM
thanks all, i got it now:D

slyfox
11-18-2003, 08:57 AM
no problem