Tema: Duda
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/04/2004, 23:29
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 21 años, 4 meses
Puntos: 1
Duda

Si la consulta que trato de ejecutar me da algun error como puedo redireccionar a la pagina que estaba que contenía un formulario antes rellenado por el usuario, y con los datos que el usuario había llenado ya. He probado de esta forma pero no me funciona:
Código PHP:
 redirect("Administración de usuarios","2",$HTTP_REFERER,"Los datos del usuario ".$_POST['nombre']." han sido actualizados correctamente"); 
donde redirect es la función esta:
Código PHP:
 function redirect($titulo,$time,$url,$texto){
 echo 
"<html><head><title>".$titulo."</title><meta http-equiv='Refresh' Content='".$time." ;url=".$url."'>
       </head><script language=JavaScript src=includes/mx.js></script>
       <link href=includes/mx.css rel=stylesheet type=text/css>
       <body bgcolor='#a2aace' topmargin='3'>
       <table width='300' border='0' align='center' cellpadding='0' cellspacing='0'>
       <tr>
       <td><div align='center'><img src='img/marxismologofull.gif' alt='Departamento de Marxismo' width='174' height='82'></div></td>
       </tr>
       <tr>
       <td class='txtcn'>"
.$texto."</td>
       </tr>
       <tr>
       <td><div align='right'><img src='img/mxportal.gif' alt='MX Portal System' width='36' height='32'></div></td>
       </tr>
       </table>
       </body></html>"
;

Salu2
__________________
Ing. Reynier Pérez Mira