1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
| //La fonction JavaScript qui vérifie si les champs obligatoirs du formulaire ont été bien remplis
<!--
function envoie(formulaire) {
if ( (document.getElementById('sex').value.length>0)
&&(document.getElementById('nom').value.length>0)
&&(document.getElementById('prenom').value.length>0)
&&(document.getElementById('IKOS').value.length>0)
&&(document.getElementById('LOTUS').value.length>0)
&&(document.getElementById('Meuble').value.length>0)
&&(document.getElementById('poste').value.length>0)
&&(document.getElementById('Tel').value.length>0)
&&(document.getElementById('email').value.length>0)
){
){
formulaire.submit();
} else
alert('Vos réponses ne peuvent pas être envoyées, Vous avez oublié de remplir des champs obligatoires ');
}
-->
et voici mon script :
<form action="envoi.php" method="post"
name="form_contacts" id="form_contacts">
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="text-decoration: underline;">Veuillez
indiquez
l'identité du nouveau arrivé sité dans
le mail présedent</span> :</p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="color: rgb(0, 0, 0);">*</span><span
style="font-weight: normal;">Madame</span><input
name="sex" value="Madame" id="sex" type="radio"><span
style="font-weight: normal;">Monsieur</span> <input
name="sex" value="Monsieur" id="sex" type="radio"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="color: rgb(0, 0, 0);">
*</span><span style="font-weight: normal;">Nom
:</span> <input size="50" name="Nom" id="nom"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="color: rgb(0, 0, 0);">*</span><span
style="font-weight: normal;">Prénom</span>
: <input size="50" name="Prenom" id="prenom"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="color: rgb(0, 0, 0);"></span><span
style="text-decoration: underline; font-weight: bold;">Quelles
sont les applications dont cette personne a besoin en dehors du profil
de démarrage du poste de travail</span><span
style="font-weight: bold;"> :</span><span
style="font-weight: bold;"></span></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="color: rgb(0, 0, 0);">*
IKOS : </span><span style="font-weight: normal;">Oui</span>
<input name="Ikos" value="oui" id="sex"
type="radio"><span style="font-weight: normal;">Non</span>
<input name="Ikos" value="Non" id="sex"
type="radio"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="color: rgb(0, 0, 0);">*LOTUS
: </span><span style="font-weight: normal;">Oui </span><input
name="Lotus" value="Oui" id="sex" type="radio"><span
style="font-weight: normal;">Non</span> <input
name="Lotus" value="Non" id="sex" type="radio"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="font-weight: normal;">*
Application
spécifique :</span> <input size="50"
name="appli" id="adresse"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="font-weight: normal;">*
Le bureau dans lequel va travailler la personne est t'il
équipé d'un meuble de bureau ?</span><span
style="color: rgb(0, 0, 0); font-weight: normal;"> : </span><span
style="font-weight: normal;">Oui</span> <input
name="Meuble" value="Oui" id="meuble" type="radio"><span
style="font-weight: normal;">Non</span> <input
name="Meuble" value="Non" id="meuble" type="radio"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span
style="color: rgb(0, 0, 0); font-weight: normal;">* Y a t'il
y poste de travail
disponible pour cette personne ? Si Oui nom du poste de travail</span><span
style="font-weight: normal;"> :</span><input
name="poste" id="poste"><span
style="font-weight: normal;">
Non </span><input name="poste" value="Non"
id="poste" type="radio"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span style="font-weight: normal;">*
Futur n° de téléphone</span><span
style="color: rgb(0, 0, 0); font-weight: normal;"></span><span
style="font-weight: normal;"> :</span> <input
name="Tel" id="Tel"></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; color: rgb(0, 0, 0);"
class="Style10"> <span style="color: rgb(0, 0, 0);"><span
style="text-decoration: underline;">Renseignement
vous concernant :</span></span></p>
<p
style="text-align: center; font-family: Helvetica,Arial,sans-serif; font-weight: bold; color: rgb(0, 0, 0);"
class="Style10"><span
style="color: rgb(0, 0, 0); font-weight: normal;">*</span><span
style="font-weight: normal;">
Votre adresse
email :</span> <input name="email" id="email"
size="50"></p>
<p style="width: 1007px;" align="left"> <input
name="envoyer" id="envoyer" value="Envoyer"
onclick="envoie(this.form)" type="button"> <input
name="retablir" id="retablir" value="Rétablir"
type="reset"></p>
</form>
<!--END CUSTOM HTML CODE--> |