Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/05/2013, 11:47
mafewo
 
Fecha de Ingreso: mayo-2013
Mensajes: 4
Antigüedad: 11 años
Puntos: 0
Respuesta: Carga de datos en un input

Hola mira primero creas un formulario como este:

Código HTML:
Ver original
  1. <form action="accion.php" method="post">
  2.  <p>Su nombre: <input type="text" name="nombre" /></p>
  3.  <p>Su edad: <input type="text" name="edad" /></p>
  4.  <p><input type="submit" /></p>
  5. </form>

y luego para ver el contenido enviado lo mostras asi:

Código HTML:
Ver original
  1. Hola <?php echo htmlspecialchars($_POST['nombre']); ?>.
  2. Usted tiene <?php echo (int)$_POST['edad']; ?> años de edad.