title: How to get value from checked checkbox, which are in a table
body: <p>I have a form:</p>
  
  <pre><code>&lt;form action='send.php' method ='post'&gt;
          SMS: &lt;input type='checkbox' name = 'sms'&gt;
          E-mail: &lt;input type='checkbox' name = 'email' id='mailcheck'&gt;&lt;br&gt;
          &lt;TEXTAREA NAME='message' WRAP='virtual' COLS='40' ROWS='3'&gt;
          &lt;/TEXTAREA&gt;&lt;br&gt;
          &lt;input type ='submit' name ='Send' size = '10' value = 'send'&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>I have a table which construct from DB:</p>
  
  <pre><code>$table = "&lt;table border=1 width=100% align=center&gt;\n";
          $table .= "&lt;tr&gt;\n";
          $i = 1;
          while ($i &lt; mysql_num_fields($queryResult)) {
              $meta = mysql_fetch_field($queryResult, $i);
              $i++;
              $table .= "&lt;td&gt;".$meta-&gt;name."&lt;/td&gt;\n";
          }
          $table .= "&lt;td&gt; Выбрать все: &lt;input type='checkbox' name='maincheck' value='main' id='chkSelectAll'&lt;/td&gt;\n";
          $table .= "&lt;/tr&gt;\n";
          $i = 1;
          while ($row = mysql_fetch_assoc($queryResult)){     
              $table .= "&lt;tr&gt;\n";
              $table .= "&lt;td&gt;".$row['name']."&lt;/td&gt;\n";
              $table .= "&lt;td&gt;".$row['post']."&lt;/td&gt;\n";    
              $table .= "&lt;td&gt;".$row['section']."&lt;/td&gt;\n";  
              $table .= "&lt;td&gt;".$row['company']."&lt;/td&gt;\n";  
              $table .= "&lt;td&gt;".$row['phone_number']."&lt;/td&gt;\n";  
              $table .= "&lt;td&gt;".$row['email']."&lt;/td&gt;\n";  
              $table .= "&lt;td&gt;".$row['status']."&lt;/td&gt;\n";  
              $table .= "&lt;td&gt;".$row['lock_time']."&lt;/td&gt;\n";  
              $table .= "&lt;td&gt;".$row['reason_for_blocking']."&lt;/td&gt;\n";  
              $table .= "&lt;td&gt;&lt;input type='checkbox' class=".check."  name='cbname3[]' id='chkItems' value=".$row['id']." /&gt;&lt;/td&gt;";
              $table .= "&lt;/tr&gt;\n";
              $i++;
          }
          $table .= "&lt;/table&gt;\n";
          echo $table;
  </code></pre>
  
  <p>I want to take value of checked checkboxes from table to send.php.</p>
  
  <p><strong>I cant take this throw $_POST, because it's different forms!</strong></p>