For Programmers: Free Programming Magazines  


Home > Archive > ASP > July 2004 > Function Help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Function Help
just1coder@yahoo.ca

2004-07-28, 8:55 pm

I wrote a function to check for a valid email...

function IsEmailValid(email)
dim sql
sql = "usp_isemailvalid " & email
set rs = conn.execute(sql)
if rs.eof then
IsEmailValid = false
else
IsEmailValid = true
end if
end function

how can I use that function in an if statement ??

if IsEmailValid(email) = true then
response.write("success!")
else
response.write("fraid not!")
end if
dlbjr

2004-07-28, 8:55 pm

if IsEmailValid(email) then
response.write("success!")
else
response.write("fraid not!")
end if


dlbjr
Pleading sagacious indoctrination!


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com