Stano ho fatto questo codice in locale e funziona perfettamente stampa tutto quello che scrivo e se non scrivo niente nel input mi da 0
Codice PHP:
<html>
<form action="#" method ="POST">
<input name ="uno" type ="text">
<input name ="due" type ="text">
<input type="submit" value="Continua">
<form>
</html>
<?php
if (empty($_POST["uno"]))
$n1=0;
else
$n1= $_POST["uno"];
if (empty($_POST["due"]))
$n2=0;
else
$n2= $_POST["due"];
print"
<center>[b]----------:". $n1 ."<td>
";
echo"
<center>[b]----------:". $n2 ."<td>
";
?>