Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/04/2007, 07:43
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años
Puntos: 5
Re: Valider aceptar contrato

hazlo asi para ver:

Código PHP:
<script language="javascript" TYPE="text/javascript" >
    function 
validaCheck(f){
        if (
f.privacidad.checked == true) {
            if (/^
w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/.test(document.formulario.mail.value)) { 
            } else {
                
alert("La dirección de email es incorrecta.");
                return 
false;
            }
        } else {
            
alert("Es necesario aceptar los terminos de uso");
            return 
false;
        }
    }
</script> 
Código PHP:
<form action="<?echo $PHP_SELF?>" name="formulario" method="post" enctype="multipart/form-data" onsubmit="return validaCheck(this)">
saludos
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.