Prueba este script
Código PHP:
Ver original<?php
$row = array('10','11','12','13','14'); ?>
<form id="ver_sorteos" name="" method="post" action="">
<?php
echo '<table border=1>';
echo '<tr><th>Num</th><th>P</th><th>Cant</th></tr>';
for ($i = 0,$can=1; $i < count($row); $i++,$can++) { echo "<tr>
<th>".$row[$i]."</th>
<td><input type=checkbox title=Pedir value=".$row[$i]." name='numero[$i]' />
<td><input type=text size='5' name=cantidad[$i] value='' /></td>
</tr>\n";
}
echo '</table>';
?>
<input type="submit" name="enviar">
</form>
<?php
if ($_POST['enviar']) {
echo 'No hay cantidad';
}
if (empty($_POST['numero'])) { echo 'No hay pedidos';
}
echo '<table border=1>';
echo '<tr><th>Num</th><th>Cant</th></tr>';
for ($e = 0; $e < count($_POST['cantidad']); $e++) { if ($_POST['cantidad'][$e]) {
echo "<tr>
<th>".$_POST['numero'][$e]."</th>
<td>".$_POST['cantidad'][$e]."</td>
</tr>";
}
}
echo '</table>';
}
?>