actualmente estoy validando con js.
Código Javascript
:
Ver originalfunction checkPass() {
if (document.getElementById("pass_usuario").value == document.getElementById("confirm_pass").value)
return true;
else
alert("Las contraseñas no coinciden");
return false;
}
Código HTML:
Ver original<form id="nuevo_usuario" action="php/registro.php" method="POST"> <input type="email" name="email_usuario" placeholder="E-mail" required="" autocomplete="off" onclick="this.placeholder='';" onblur="this.placeholder=(this.placeholder=='')?'E-mail':this.placeholder;"> <input type="password" id="pass_usuario" name="pass_usuario" placeholder="Contraseña" required="" onclick="this.placeholder='';" onblur="this.placeholder=(this.placeholder=='')?'Contraseña':this.placeholder;"> <input type="password" id="confirm_pass" name="confirm_pass" placeholder="Confirmar contraseña" required="" onclick="this.placeholder='';" onblur="this.placeholder=(this.placeholder=='')?'Confirmar contraseña':this.placeholder;"> <input type="submit" name="registrar" value="Registrar" onclick="return checkPass();">