This one is very simple….
but there is always someone trying to reach this code…. I hope you understand
the code.
1. First I have created a variable that at the end could give me if the
validation is ok or not ‘goby’.
2. So, I have used the
function InStr that gives me True Or False about any character inside
a String.
This one is very simple…. but there is always someone trying to reach this code…. I hope you understand the code.
3. So here is the code, use
it as you want
Dim goby
goby = 0 //Starting the goby string
I f Len(session(“emailfrom”))
else
If InStr(1, session(“emailfrom”),
“@”, 1)
goby = 1
Else
If
InStr(1,session(“emailfrom”), “.”, 1)
goby = 1
End
If
End If
End If
If goby 0 then // well , if goby 0 then something
must be wrong
response.write “Bad E-Mail…”
End If
Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.