title: How do I insert data from one table to another in mysql?
body: <p>I have a grid with records and them had a checkbox <code>&lt;input name="id[]" value="&lt;?php echo $valor-&gt;id ?&gt;" type="checkbox" class="check" /&gt;</code> and I am trying to copy the selected record to another table</p>
  
  <pre><code>$sql = "INSERT INTO `pendientes` SELECT * FROM clientes WHERE id = $idcopia"; 
  mysql_query($sql);  
  </code></pre>
  
  <p>but I don't know how to send the id, my idea is select a checkbox and with a button "Copy" send the id but maybe there is another way.</p>