Ver Mensaje Individual
  #12 (permalink)  
Antiguo 06/04/2008, 10:25
Avatar de yoseman
yoseman
 
Fecha de Ingreso: diciembre-2003
Ubicación: Alicante (Spain)
Mensajes: 471
Antigüedad: 20 años, 5 meses
Puntos: 5
Re: contraseña y confirmar contraseña

Lo has puesto en la parte de error de registro:
Código PHP:
<?
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "formu")) 

    if(
$_POST['contrasena1'] == $_POST['contrasena2'])
    {
        
$insertSQL sprintf("INSERT INTO usuarios (usuario, nombre, apellido, Pais, ciudad, Email, Sexo, pass) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)"
        
GetSQLValueString($_POST['usuadio'], "text"), 
        
GetSQLValueString($_POST['nombre'], "text"), 
        
GetSQLValueString($_POST['apellido'], "text"), 
        
GetSQLValueString($_POST['pais'], "text"), 
        
GetSQLValueString($_POST['ciudad'], "text"), 
        
GetSQLValueString($_POST['email'], "text"), 
        
GetSQLValueString($_POST['sexo'], "text"), 
        
GetSQLValueString($_POST['contrasena1'], "text")); 
        
mysql_select_db($database_prosperidad$prosperidad); 
        if(
mysql_query($insertSQL$prosperidad))
            
header ("Location:  felicitaciones.php");
        else 
            die(
mysql_error()); 
    } 
    else 
    {
        echo 
"Las contraseñas no coinciden";
        exit(); 
    }
}
Prueba ahí...

Un saludo
__________________
[+]
[+]