Seconda Pagina (1.php)
<?php
@$primo = $_GET['Primo'];
@$secondo = $_GET['Secondo'];
@$somma = $primo+$secondo;
echo '<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Somma</title>
</head>
<body>
<form method="GET" >
<table align=center>
<tr>
<td align="center">Primo numero</td>
<td><input type=text name=Primo></td>
</tr>
<tr>
<td align="center">Secondo numero</td>
<td><input type=text name=Secondo></td>
</tr>
<tr>
<td colspan="2" align="center">
<p align="center">
<!---<input type=button value="Esegui somma">-->
<input type="submit" name="submit" value="Fai la somma">
<input type=reset value=Cancella></td>
</tr>
<tr>
<td align="center">Somma</td>
<td><input color="red" type="text" name="text" value="'.$somma.'"></td>
</tr>
</table>
</form>
</body>
</html>';
?>