Ciao a me in questo modo funziona perfettamente:
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"]; }
echo"
<center>----------:". $n1 ."</p>";
echo"
<center>----------:". $n2 ."</p>";
?>
Se tu stai provando a farlo funzionare dal tuo computer verifica di aver installato PHP