%'@ Language=VBScript %> <%' ----------------------------------------------------------------------------------------+ '| S U I V I D E S M O D I F I C A T I O N S | '+------------------------------------------------------------------------------------------+ ' Name: contact.asp ' Type: Active Server Page ' Written: Sem Brundu ( www.solucia.net ) ' email: sem@solucia.net ' Date: mercredi 3 décembre 2003 15:23:35 ' Comments : Formulaire de contact / page dynamique '+------------+---------------+-------------------------------------------------------------+ '| Date | Auteur | Remarques / action | '+------------+---------------+-------------------------------------------------------------+ '| 03/12/2003 | Sem BRUNDU | Modification | '+------------+---------------+------------------------------------------------------------%> <% 'OPTION EXPLICIT Const Page = "contacts.asp" Const Racine = "" %>
"& replace(commentaires,vbcrlf,"" End If if mem = "Envoyer" then formcontact_check if mem = "Envoyer" then ' agence_email = "sem@solucia.net" agence_email = "nouvprobat@wanadoo.fr" envoi_jmail email, crediteur &" > "& site & " - " & typeMessage& "", agence_email, texte, 1 msg = "> Votre demande a correctement été expédiée sur "& agence_email &"." 'societe = "" contact = "" tel = "" email = "" commentaires = "" end if ' ================================================================================================= Function formcontact_check ' ------------------------------------------------------------------------------------------------- ' If tel <>"" Then ' If Not IsNumeric(tel) Then ' mem="erreur": msg="
") &"
> Le téléphone n'est pas valide, merci de le 'corriger.
" ' End If ' End If If Not CBool(IsValidEmail(email)) then mem="erreur": msg="> Veuillez saisir une adresse e-mail valide !
" End If If contact="" Or email="" Then mem="erreur" msg="> Un ou plusieurs champs obligatoires (*) sont absents.
" End If End Function ' ================================================================================================= %>|
|
|
|
|
|||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||