PHP Classes

checkboxes

Recommend this page to a friend!

      Eyesis Data Grid Control  >  All threads  >  checkboxes  >  (Un) Subscribe thread alerts  
Subject:checkboxes
Summary:submit selected checkbox and print_r($_POST)
Messages:1
Author:serkan hamarat
Date:2009-01-10 01:10:08
 

  1. checkboxes   Reply   Report abuse  
Picture of serkan hamarat serkan hamarat - 2009-01-10 01:10:08
When using checkboxes and "document.dg.submit()" java function, you should see output of print_r() like this:

Array
(
[tbl-checkbox] => Array
(
[2] => 2
[3] => 3
[5] => 5
[7] => 7
[11] => 11
[13] => 13
)
[tbl-page] => 1
)


if you want tbl-checkbox as an array (like above), you can use this, instead of lines 750 and 751:

if ($this->show_checkboxes)
echo '<td align="center"><input type="checkbox" class="tbl-checkbox" id="checkbox" name="tbl-checkbox[' . $row[$this->primary] . ']" value="' . $row[$this->primary] . '"></td>';




old lines are:

if ($this->show_checkboxes)
echo '<td align="center"><input type="checkbox" class="tbl-checkbox" id="checkbox" name="tbl-checkbox" value="' . $row[$this->primary] . '"></td>';