Copear el siguiente código y guardarlo con la extensión index.html en la carpeta www de WampServer
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form name="Formulario" method="get" action="Suma.php">
Numero1: <input type="text" name="N1">
<br><br>
Numero2: <input type="text" name="N2">
<br><br>
<input type="submit" name="Sumar" value="Sumar"
</form>
</body>
</html>
Copear el siguiente código y guardarlo con la extensión Suma.php en la carpeta www de WampServer
<?php
$n1 = $_GET['N1'];
$n2 = $_GET['N2'];
$Suma = $n1 + $n2;
echo "La suma es igual a: $Suma";
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form name="Formulario" method="get" action="Suma.php">
Numero1: <input type="text" name="N1">
<br><br>
Numero2: <input type="text" name="N2">
<br><br>
<input type="submit" name="Sumar" value="Sumar"
</form>
</body>
</html>
Copear el siguiente código y guardarlo con la extensión Suma.php en la carpeta www de WampServer
<?php
$n1 = $_GET['N1'];
$n2 = $_GET['N2'];
$Suma = $n1 + $n2;
echo "La suma es igual a: $Suma";