<!DOCTYPE html><html lang="es"><head> <title>Página 1 de prueba de formulario con php</title> <meta charset="utf-8"/></head><body> <form method="post" action="pagina2Request.php"> Ingrese el nombre: <input type="text" name="nombre"> <br> Ingrese la edad: <input type="text" name="edad"> <br> <input type="submit" value="confirmar"> </form></body></html>
<!DOCTYPE html><html lang="es"><head> <title>Página 2 de prueba de formulario con php</title> <meta charset="utf-8"/></head><body> Probando <?php $nombre = $_POST['nombre']; echo $nombre; ?></body></html>