% '' Validations dim FV, Valid, NameValide, EmailValid, CommentsValid NameValid = 0 EmailValid = 0 CommentsValid = 0 Valid = 0 If Request.Form("submit") <> "" Then Set FV = Server.CreateObject("VisualSoft.Validator.1") NameValid = FV.IsName(Request("Name"),2,40) EmailValid = FV.IsEmail(Request("Email")) if Request("Name") <> "" then else NameValid = 1 end if if Request("Email") <> "" then else EmailValid = 1 end if if Request("Comments") <> "" then else CommentsValid = 1 end if Valid = NameValid + EmailValid + CommentsValid End If %>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|