how to delete selected checkbox value from database

Robert Lybarger

Then when you dynamically drawing the checkbox elements on the page in some sort of loop for a result set, you should set the "id" value of the checkbox to something that is connected to the element. EX: if the rows in the resultset contain the unique, primary key value for each item, use that for the id attribute value. When the form posts, process those ids to build an UPDATE or DELETE sql statement.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact