El código de la primera página es este:
Código:
Eso me funciona bien, pero el problema es que al hacer click en el botón, no me muestra la edad, solo el mensaje: La edad es:.<html> <head> <title>Documento sin título</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="dos.php" method="post"> edad: <input type="text" name="edad"> <input type="submit" value="aceptar"> </form> </body> </html>
La código de la página donde debería aparecer la edad es:
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
print ("La edad es: $edad");
?>
</body>
</html>