Qualcuno mi corregge la parte in fondo del check-box perchè così non mi funziona e mi parte lo stesso il form
L'action è così
Js esternocodice:<form method="post" action="email.asp" name="modulo" id="modulo" onsubmit="return controlla();">
codice:function controlla() { if (document.modulo.nome.value=="") { alert("Il campo NOME e' obbligatorio"); document.modulo.nome.focus(); return false; } if (document.modulo.azienda.value=="") { alert("Il campo AZIENDA e' obbligatorio"); document.modulo.azienda.focus(); return false; } if (document.modulo.indirizzo.value=="") { alert("Il campo INDIRIZZO e' obbligatorio"); document.modulo.indirizzo.focus(); return false; } if (document.modulo.telefono.value=="") { alert("Il campo TELEFONO e' obbligatorio"); document.modulo.telefono.focus(); return false; } if (document.modulo.fax.value=="") { alert("Il campo FAX e' obbligatorio"); document.modulo.fax.focus(); return false; } if (document.modulo.trovato.selectedIndex==0) { alert("Devi indicare come ci hai TROVATI."); document.modulo.trovato.focus(); return false; } email = document.modulo.email.value; Filtro = /^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/; if (!(Filtro.test(email))) { alert("Indirizzo EMAIL non corretto!"); document.modulo.email.focus(); return false; } if ((document.modulo.richiesta.value=="") || (document.modulo.richiesta.value=="Qui la tua richiesta...")) { alert("Non hai inserito il MESSAGGIO!"); document.modulo.richiesta.focus(); return false; } if (!(document.modulo.privacy.checked)) { controllo=true; alert("Devi accettare la PRIVACY"); } return true; }

Rispondi quotando
