Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/01/2007, 10:42
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: Validar Campos

Hola angel_dope

Pon así el formulario:

<form id="form1" name="form1" method="post" action="registro2.asp" onsubmit="return validar(this)">

y usa este código:

Código PHP:
function validar(frm) {
  return (
frm.email.value == frm.email2.value && frm.clave.value == frm.clave2.value);

Saludos,