The code looks like this:
<form method="post" action="pagina.php"/>
<?php
$c= 1;
$neg = 0;
while($c <=3){
echo "Digite um numero: <input type='number' name='$num' min='1'/>";
if($num < $neg){
$total++;
}
$c++;
}
?>
<input type='submit' value='Resultado'/>
I'm not sure how to do what the user typed in, it becomes a variable so I can use the control structure on it. I tried putting a direct variable in name ($ num), but it does not seem to work or it does not work. Or is this kind of thing for JavaScript?