My checkbox is not working, am I doing something wrong?

My checkbox is not working, am I doing something wrong?

cjboncjbon Posts: 1Questions: 0Answers: 0
edited February 2013 in General
Hi, I am trying to implement checkbox to submit as form but I realized it will not work this way.
What is the correct way to implement this? I read some example here but couldn't understand.

[code]




Process1
Process2
Process3
Process4




<?php
$sql = "select * from activity_temp";
$result=tep_db_query($sql);
$sc=0;
while($row = mysql_fetch_array($result)){
echo "";
echo "".$row['p1']."";
echo "".$row['p2']."";
echo "".$row['p3']."";
echo "".$row['p4']."";
echo "";
echo "";
$sc++;
}
?>








[/code]

Do I do this?

[code]
$('#search_table').dataTable({
"aoColumnDefs": [{
"bSortable": false, "aTargets": [4]
}],
"aoColumns": [
{ "mDataProp": "checkBox" }],
"aaData": [{
"checkBox": ""
}]
});
[/code]

Replies

  • austinbestaustinbest Posts: 4Questions: 0Answers: 0
    So when the checkbox is clicked, it submits the form? Use an onclick in the checkbox input, inside your array.
This discussion has been closed.