Recoge el valor del input en la var $num
Código PHP:
<td><input type="text" name="cantidad" id="cantidad" /> Numero de veces</td>
<?php
$num=$_POST["cantidad"];
for ($i = 1; $i <= $num; $i++) {
?>
<tr>
<td> <?php echo "num $i"?> <input type="text" name="ingrediente<?php echo $i; ?>" /> </td>
</tr>
<?php
}
?>
Saludos