I'm building a webpage that display a table which has multiple rows and columns. In the beginning of each row I put a check box that allows the user to select, and a button for deleting the selected rows (constructed just like a normal email's inbox). So far I use JavaScript to detect which rows' check boxes have been checked by clicking the delete button. But I couldn't put database related code in those JavaScript functions or pass values of those selected rows from JavaScript's variable to PHP's variable. So I'm stuck at this point. I want to load the same page and see those selected rows are removed from the table after the delete button is clicked. Could someone give me some ideas for solving this problem?
Thanks a lot.