I am new to PHP. So i first apologize if i am using dumb strategy. I am working on PHP site. my page queries data from MySql and shows in html table along with me checkboxes. User can Delete any data using check boxes and button. this all is done using javascript. Here is my code to delete data from html table
<script type="text/javascript">
function deleteRow() {
try {
var table = document.getElementById("Categories");
var rowCount = table.rows.length;
for(var i=0; i<rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if(null != chkbox && true == chkbox.checked) {
table.deleteRow(i);
rowCount--;
i--;
}
}
}catch(e) {
alert(e);
}
}
</script>
on clicking Save button MySql update query should run to save all changes made to page. I know this can be done by PHP. but problem here is how i can get data from html in php to run the query?? if any one can point me to right direction, i will be thankful to you.
Thanks.