prueba así
Código HTML:
<html>
<body>
<form action="" method="post" id="formulario">
Nombre: <input type="text" name="nombre" />
Edad: <input type="text" name="edad" />
<input type="submit" />
</form>
</body>
</html>
Bienvenido <?php echo $_POST["nombre"]; ?>,<br />
Tu edad es: <?php echo $_POST["edad"]; ?> años.