My checkbox is not working, am I doing something wrong?
My checkbox is not working, am I doing something wrong?
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]
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]
This discussion has been closed.
Replies