Codice PHP:
<?php
if ( empty($_POST['nome']) ) $nome = "" ;
else $nome = $_POST['nome'] ;
if ( empty($_POST['nome']) )
echo "
<html>
<head>
<title>destinazione</title>
</head>
<body>
<p align=\"center\">".$nome."
</p>
<!-- inizio form --!>
<form name=\"nome\" method=\"POST\" action=\"destinazione.php\">
<table border=\"0\" align=\"center\">
<tr>
<td align=\"center\">
<fieldset>
<input type=\"hidden\" name=\"nome\">
<input type=\"text\" name=\"nome\">
</fieldset>
</td>
</tr>
</table>
<center>
<!-- pulsante di ripristino --!>
<input name=\"ripristina\" type=\"reset\" value=\"ripristina\">
<!-- pulsante di invio --!>
<input name=\"invia\" type=\"submit\" value=\"invia\">
</center>
</form>
<!-- fine form --!>
</body>
</html>
";
else echo $nome;
?>
Rimane il mio suggerimento sul leggere la guida: a che serve mettere tutto dentro un echo?