RE: [PHP-ES] No me entero.

From: Date: Thu, 03 May 2001 10:00:19 +0000
Subject: RE: [PHP-ES] No me entero.
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-9563@lists.php.net to get a copy of this message
Muchísimas gracias Eduardo, efectivamente me faltaba el 'else' que me comentabas, llevo muy poco tiempo tocando php y me imagino que estos errores al principio me surgirán con frecuencia. Saludos, Angel Sotos ----- Mensaje original ----- De: "Eduardo Salvador Godoy Vega" <egodoy@tekchile.cl> Para: <lista@phpes.com> Enviado: miércoles 2 de mayo de 2001 22:41 Asunto: RE: [PHP-ES] No me entero. > 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: #åÅ.*>] > �Wǯ’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 > > > --------------------------------------------------------------------- > 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 (#9563) next »