Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/07/2010, 14:25
Avatar de djcandido
djcandido
 
Fecha de Ingreso: junio-2009
Ubicación: San Salvador
Mensajes: 50
Antigüedad: 14 años, 10 meses
Puntos: 0
Respuesta: Error de header();

Cita:
Iniciado por carlos_belisario Ver Mensaje
bueno hermano yo cuando me da mucho problema el header location y lo que necesito es redireccionar uso javascript hago esto echo "<script type='text/javascript'>window.location="trl"</script>" si lo que necesitas es redireccionar funciona ve a ver si te sirve
Gracias carlos_belisario lo intentaré

Creo que quedaria asi:
Código PHP:
        }elseif($step=="2"){
            
$_SESSION["idinternofoto"] = $_POST['txt_id'];
            
$_SESSION["nombreinternofoto"] = $_POST['txt_nombre_interno'];
            
$_SESSION["imagen"] = $_POST['imagen'];
                if(isset(
$_FILES["imagen"])) {
                    
$temp $_FILES["imagen"]["tmp_name"];
                    
$str "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
                    
$cad "";
                        for(
$i=0;$i<10;$i++) {
                            
$cad .= substr($str,rand(0,62),1);
                        }
                    
$thumb = new Thumbnail($temp);
                        if(
$thumb->error) {
                            echo 
$thumb->error;
                        } else {
                            
$thumb->resize(222);
                            
$fototomada $thumb->save_jpg("fotos/"$cad."_".date('dmY_His'));
                            
//$thumb->save_jpg("", "imagen");
                            //insertar datos de foto a la base de datos
                          
}
                }
            
//header("Location: datos_juridicos.php");
        
echo("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>Untitled Document</title>
<link href=\"/sipe/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />
<script type='text/javascript'>
window.location=\"datos_juridicos.php\";
</script>
</head>

<body>
</body>
</html>"
);
        }