Twango Posted March 16, 2011 Share Posted March 16, 2011 I have a database, where i delete from a php page. I want to make it automatically delete everything in a checkbox.It deletes to a page <a href="delete.php?usertodelete=xxx&modpassword=xxx">HELP me i need to make it do it automatically Link to comment Share on other sites More sharing options...
thescientist Posted March 16, 2011 Share Posted March 16, 2011 um, this seems pretty vague. do you have some code at least? Are you saying you have an HTML table outputted with information that you want deleted from a database table if someone selects a checkbox? If so, What you need is to assign a meaningful value or id or something to the checkbox, to distinguish it from all the other checkboxes. The simplest way is to give it an ID that correlates to an ID of a row in the database table you want to delete from. If you want it done automatically, you need to use javascript to have it make a call to a script and takes the ID and then runs a query using that identifier. Otherwise, you can just use a form and a submit button. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.