RE: [PHP-ES] No me entero.

From: Date: Wed, 02 May 2001 20:41:08 +0000
Subject: RE: [PHP-ES] No me entero.
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-9545@lists.php.net to get a copy of this message
si indentamos un poco ... yo leo que si la password es identica a retypepassword entonces hace un header y luego otro ... lo que a mi entender ... hace que siempre se vea "el ultimo" ... revisa la necesidad (o el cuando se debe ir al ultimo header)... agrega al final else { header("Location: http://www.inforjaen.com/error/password.htm"); } en vez de header("Location: http://www.inforjaen.com/error/password.htm"); Espero que funcione ... if ($password == $retypepassword) { include("../php/connect_inforjaen.php"); include("../php/date.php"); $link=Conectarse(); $fecha=date_international ($date_format="d m Y", $lang="Es", $time=0); $result=mysql_query("select * from Infj where Urls='$url'",$link); $numrec=mysql_num_rows($result); if ($numrec!=0) { header("Location: http://www.inforjaen.com/error/existe.htm"); } else { mysql_query("insert into Infj (Fech,Title,Urls,Description,Mail,Section,Location,Pass) values ('$fecha','$titulo','$url','$descripcion','$email','$seccion', '$localidad','$password')",$link); header("Location: http://www.inforjaen.com/alta/confirma.htm"); } //else } //if header("Location: http://www.inforjaen.com/error/password.htm"); --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com

« previous php.general.es (#9545) next »