Ver Mensaje Individual
  #18 (permalink)  
Antiguo 27/02/2012, 11:13
Avatar de mackiechan
mackiechan
 
Fecha de Ingreso: junio-2009
Ubicación: Maracay, Venezuela
Mensajes: 51
Antigüedad: 14 años, 10 meses
Puntos: 12
Respuesta: boton editar que cargue listado en formulario

ajajajaja esta facil y bueno fue que te copie los datos que no eran, pero aqui te lo paso con 1 solo formulario para que salga un solo formulario (probado y comprobado xD):

<?php

if ($_POST['nombre2']){
echo '
<span style="text-align:center;font-size:14px;color:#021E9E">
<form action="pagina2.php" method="POST">
<input type="text" name="nombre" value="'.$_POST['nombre2'].'">
<input type="text" name="apellidos" value="'.$_POST['apellidos'].'">
<input type="text" name="email" value="'.$_POST['email'].'">
<input type="text" name="sexo" value="'.$_POST['sexo'].'">
<input type="text" name="edad" value="'.$_POST['edad'].'">
<input type="text" name="notificacion" value="'.$_POST['notificacion'].'">
<input type="text" name="adjunto1" value="'.$_POST['adjunto1'].'">
<input type="text" name="adjunto2" value="'.$_POST['adjunto2'].'">
<input type="submit" value="Enviar">
</form>
<span>
';

}else{
if ($_POST['nombre']){

echo '<span style="text-align:center;font-size:14px;color:#021E9E">' .$_POST['nombre'].'&nbsp;&nbsp;&nbsp;'.$_POST['apellidos'].'&nbsp;&nbsp;&nbsp;'.$_POST['email'].'&nbsp;&nbsp;&nbsp;'. $_POST['sexo'].'&nbsp;&nbsp;&nbsp;'. $_POST['edad'].'&nbsp;&nbsp;&nbsp;'.$_POST['notificacion'].'&nbsp;&nbsp;&nbsp;'.$_POST['adjunto1'].'&nbsp;&nbsp;&nbsp;'.$_POST['adjunto2'];

echo '<form method="POST">
<input type="hidden" name="nombre2" value="'.$_POST['nombre'].'">
<input type="hidden" name="apellidos" value="'.$_POST['apellidos'].'">
<input type="hidden" name="email" value="'.$_POST['email'].'">
<input type="hidden" name="sexo" value="'.$_POST['sexo'].'">
<input type="hidden" name="edad" value="'.$_POST['edad'].'">
<input type="hidden" name="notificacion" value="'.$_POST['notificacion'].'">
<input type="hidden" name="adjunto1" value="'.$_POST['adjunto1'].'">
<input type="hidden" name="adjunto2" value="'.$_POST['adjunto2'].'">
<input type="submit" value="Editar">
</form></span>';
}else{
echo '
<form action="pagina2.php" method="POST">
<input type="text" name="nombre" value="">
<input type="text" name="apellidos" value="">
<input type="text" name="email" value="">
<input type="text" name="sexo" value="">
<input type="text" name="edad" value="">
<input type="text" name="notificacion" value="">
<input type="text" name="adjunto1" value="">
<input type="text" name="adjunto2" value="">
<input type="submit" value="Enviar">
</form>';
}
}

?>