Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
nous_contacter [2009/11/21 23:08] – cousteau_d1 | nous_contacter [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | < | ||
- | < | ||
- | |||
- | function verifSelection() { | ||
- | |||
- | |||
- | if (document.mail_form.champ1.value == "" | ||
- | alert(" | ||
- | return false | ||
- | } | ||
- | |||
- | if (document.mail_form.champ2.value == "" | ||
- | alert(" | ||
- | return false | ||
- | } | ||
- | |||
- | if (document.mail_form.zone_email1.value == "" | ||
- | alert(" | ||
- | return false | ||
- | } | ||
- | |||
- | invalidChars = " /:,;'" | ||
- | |||
- | for (i=0; i < invalidChars.length; | ||
- | badChar = invalidChars.charAt(i) | ||
- | |||
- | if (document.mail_form.zone_email1.value.indexOf(badChar, | ||
- | alert(" | ||
- | document.mail_form.zone_email1.focus() | ||
- | return false | ||
- | } | ||
- | } | ||
- | |||
- | atPos = document.mail_form.zone_email1.value.indexOf(" | ||
- | if (atPos == -1) { | ||
- | alert(' | ||
- | document.mail_form.zone_email1.focus() | ||
- | return false | ||
- | } | ||
- | |||
- | if (document.mail_form.zone_email1.value.indexOf(" | ||
- | alert(' | ||
- | document.mail_form.zone_email1.focus() | ||
- | return false | ||
- | } | ||
- | |||
- | periodPos = document.mail_form.zone_email1.value.indexOf(" | ||
- | |||
- | if (periodPos == -1) { // and at least one " | ||
- | alert(' | ||
- | document.mail_form.zone_email1.focus() | ||
- | return false | ||
- | } | ||
- | |||
- | if (periodPos+3 > document.mail_form.zone_email1.value.length) { // | ||
- | alert(' | ||
- | document.mail_form.zone_email1.focus() | ||
- | return false | ||
- | } | ||
- | |||
- | if (document.mail_form.zone_texte1.value == "" | ||
- | alert(" | ||
- | return false | ||
- | } | ||
- | |||
- | } | ||
- | </ | ||
- | |||
- | </ | ||
- | < | ||
- | <?php | ||
- | |||
- | |||
- | $desactive = ini_get(' | ||
- | if (preg_match("/ | ||
- | |||
- | ini_set(" | ||
- | } | ||
- | |||
- | |||
- | if (isset($_POST[' | ||
- | |||
- | |||
- | |||
- | |||
- | session_start(); | ||
- | |||
- | $_SESSION[' | ||
- | $_SESSION[' | ||
- | $_SESSION[' | ||
- | |||
- | |||
- | $_SESSION[' | ||
- | |||
- | |||
- | |||
- | |||
- | celle utilisée dans l\' | ||
- | doit se trouver dans le répertoire \' | ||
- | |||
- | $flag_icone = 0; | ||
- | |||
- | if ($flag_icone == 0) { | ||
- | $icone = "< | ||
- | } else { | ||
- | $icone = "< | ||
- | } | ||
- | |||
- | |||
- | $flag_erreur = 0; | ||
- | |||
- | if ($flag_erreur == 0) { | ||
- | $email_dest = " | ||
- | $sujet = " | ||
- | $entetes =" | ||
- | $entetes .=" | ||
- | $entetes .=" | ||
- | $entetes .=" | ||
- | $entetes .=" | ||
- | $partie_entete = "< | ||
- | |||
- | |||
- | //Partie HTML de l' | ||
- | $partie_champs_texte .= "< | ||
- | $partie_champs_texte .= "< | ||
- | $partie_zone_email .= "< | ||
- | $partie_zone_texte .= "< | ||
- | |||
- | |||
- | |||
- | $fin = "</ | ||
- | |||
- | $sortie = $partie_entete . $partie_champs_texte . $partie_zone_email . $partie_listes . $partie_boutons . $partie_cases . $partie_zone_texte . $fin; | ||
- | |||
- | |||
- | |||
- | if (@!mail($email_dest, | ||
- | echo(" | ||
- | exit(); | ||
- | } else { | ||
- | |||
- | | ||
- | header(" | ||
- | exit(); | ||
- | } // Fin else | ||
- | } // Fin du if ($flag_erreur == 0) { | ||
- | } // Fin de if POST | ||
- | ?> | ||
- | <form name=" | ||
- | <div align=" | ||
- | de contact</ | ||
- | <tr> | ||
- | <td height=" | ||
- | <font color="# | ||
- | if ($erreur_champ1) { | ||
- | echo(stripslashes($erreur_champ1)); | ||
- | } else { | ||
- | if ($erreur_champ2) { | ||
- | echo(stripslashes($erreur_champ2)); | ||
- | } else { | ||
- | if ($erreur_email1) { | ||
- | echo(stripslashes($erreur_email1)); | ||
- | } else { | ||
- | if ($erreur_texte1) { | ||
- | echo(stripslashes($erreur_texte1)); | ||
- | } else { | ||
- | } | ||
- | } | ||
- | } | ||
- | } | ||
- | ?> | ||
- | </ | ||
- | </ | ||
- | </tr> | ||
- | </ | ||
- | <p align=" | ||
- | <td width=" | ||
- | <td align=" | ||
- | <?php | ||
- | if ($erreur_champ1) { | ||
- | echo($icone); | ||
- | } | ||
- | ?> | ||
- | </td> | ||
- | < | ||
- | </ | ||
- | <td width=" | ||
- | <td align=" | ||
- | <?php | ||
- | if ($erreur_champ2) { | ||
- | echo($icone); | ||
- | } | ||
- | ?> | ||
- | </td> | ||
- | < | ||
- | </ | ||
- | <td width=" | ||
- | <td width=" | ||
- | <?php | ||
- | if ($erreur_email1) { | ||
- | echo($icone); | ||
- | } | ||
- | ?> | ||
- | </td> | ||
- | < | ||
- | </ | ||
- | <td width=" | ||
- | <td width=" | ||
- | <?php | ||
- | if ($erreur_texte1) { | ||
- | echo($icone); | ||
- | } | ||
- | ?> | ||
- | </td> | ||
- | < | ||
- | </ | ||
- | <td valign=" | ||
- | <input type=" | ||
- | | ||
- | <input type=" | ||
- | </ | ||
- | </ |