J'ai fait un formulaire et j'ai mis certains filtres/contrôle sur quelques champs à remplir avec le JavaScript...
Tout marche bien...
Code : Tout sélectionner
function check()...
if (document.FormToto.nom.value=="")
{
alert("ECRIVEZ VOTRE NOM S\'IL VOUS PLAIT !");
return false;
//....
if (document.FormToto.annee6.checked)
{
v_compte = v_compte + 1;
}
if (v_compte == 0 )
{
alert("VEUILLEZ CHOISIR AU MOINS UN MAGAZINE S\'IL VOUS PLAIT !");
return false;
}
if (v_compte >> 1 )
{
alert("VEUILLEZ CHOISIR MAX. UN MAGAZINE S\'IL VOUS PLAIT !");
return false;
}
//etc...Un message s’afficherait : ce courriel a déjà été saisi, vous ne pouvez pas envoyer le formulaire par le même email.