Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/03/2010, 02:15
Vallu
 
Fecha de Ingreso: marzo-2010
Ubicación: Barcelona
Mensajes: 657
Antigüedad: 14 años, 1 mes
Puntos: 26
Respuesta: Ayuda nuevo en PHP

Para hacerlo todo en la misma pagina y de la manera más sencilla no pongas action:

Código PHP:
<html><HEAD></HEAD><BODY>
<?php   
    
if(!empty($_POST)){
        echo 
"Nombre-->".$_POST['nombre']."<br>Edad-->".$_POST['edad'];
    }else{
        
    }
?>


<form method="post">
<b>Tu nombre</b>
<input type ="text" name="nombre"><br>
<b>Tu edad</b>
<input type="text" name="edad">
<input type ="submit">