<CFSET NotFound = 0> <CFSET IsValidEMail = ((#Find('@', Form.EMail, 2)# NEQ #NotFound#) AND (#Find('.', Form.EMail, 4)# NEQ #NotFound#))> <CFIF NOT #isValidEMail#> <CFSET Msg = "E-mail incorrect"> <CFELSE> <CFSET Msg = "E-mail correct"> </CFIF>
dans ColdFusion