Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/07/2013, 16:39
Avatar de gekkodev
gekkodev
 
Fecha de Ingreso: julio-2013
Mensajes: 22
Antigüedad: 10 años, 9 meses
Puntos: 2
De acuerdo Respuesta: Cómo pasar contenido de formulario a otra página

Mira, algo así le hago yo:
En el 1er formulario
Código PHP:
Ver original
  1. <form id="infobasic" action="confirmacion.php" method="post">
  2. <table>
  3.     <tr>
  4.           <td>Nombre:</td>
  5.           <td><input name="nombre" type="text"></input></td>
  6.    </tr>
  7.    <tr>
  8.          <td>Email:</td>
  9.          <td><input name="email" type="text"></input></td>
  10.    </tr>
  11.    <tr>
  12.          <td>Dirección:</td>
  13.          <td><input name="direccion" type="text"></input></td>
  14.    </tr>
  15.    <tr>
  16.         <td></td>
  17.         <td><center><input type="submit" value="Continuar"></input></center></td>
  18.     </tr>
  19. </table>
  20. </form>

Y en el 2do form que le quieres pasar la info ya ingresada le pasas los datos por PHP:
Código PHP:
Ver original
  1. <?php
  2.      $nombre = $_POST['nombre'];
  3.      $email = $_POST['email'];
  4.      $direccion = $_POST['direccion'];
  5.      $lenguaje = $_POST['lenguaje'];
  6.      $peliculas = $_POST['peliculas'];
  7. ?>

Y su form quedaria asi:

Código HTML:
Ver original
  1. <form id="confirmacion" action="finale" method="post">
  2.    <table>
  3.         <tr>
  4.                <td>Nombre:</td>
  5.                <td><input name="nombre" type="text" value="<?php echo$nombre;?>" disabled="disabled"></input>
  6.                </td>
  7.         </tr>
  8.         <tr>
  9.                <td>Email:</td>
  10.                <td><input name="email" type="text" value="<?php echo$email;?>" disabled="disabled"></input></td>
  11.         </tr>
  12.         <tr>
  13.                <td>Direccion:</td>
  14.                <td><input name="direccion" type="text" value="<?php echo$direccion;?>" disabled="disabled"></input></td>
  15.          </tr>
  16.          <tr>
  17.                 <td>Intereses:</td>
  18.                <td><input name="intereses" class="easyui-validatebox" style="height='200px'; width='100px'" value="<?php echo"$lenguaje , $peliculas";?>" disabled="disabled"> </input></td>
  19.          </tr>
  20.          <tr>
  21.                 <td></td>
  22.                 <td><center><input type="submit" value="Finalizar"></input></center></td>
  23.           </tr>
  24.       </table>
  25. </form>

Ojalá y te halla ayudado! Saludos

Última edición por gekkodev; 25/07/2013 a las 16:45