Forum Moderators: open

Message Too Old, No Replies

Email, dns, smtp validation script help?

Want to validate email address, dns & smtp on form

         

KRMwebdesign

2:29 pm on Jan 25, 2010 (gmt 0)

10+ Year Member



Just want to thank everyone on the board for the great help you've given me over the last few months. Your help is second to none.

I found this great email, dns & smtp validation script recently ...
page - {URL Removed}
source - {URL Removed}

...and I was just wondering if anyone knew of a vbscript version of this? Also, I'm no expert in jscript but do you think I'd be able to convert this to vbscript?

Also, if I was to add this script into a vbscript page would my scripts clash? I'm guessing yes but just in case...?

[edited by: Ocean10000 at 1:28 am (utc) on Jan. 26, 2010]
[edit reason] Removed URLS [/edit]

Seb7

6:04 pm on Jan 25, 2010 (gmt 0)

10+ Year Member



I've always thought about putting all this checking in to checking emails on my web forms but always thought it wasn’t worth the hard work trying to code such a thing.

ASP to vbscript is pretty straight forward. Just copy to a vbscript, and replace a few statements like response.write with something else.

Ocean10000

1:54 am on Jan 26, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Some quick things to change when going from jscript to vbscript.

(1) if statements do not require {} in vb, they use If (..) than Else End If structure.
(2) Strings in vbscript start with a double quote " and not a single quote '.
(3) Comments in vb are done with ', where as in jscript they are done with a double slash //.
(4) Functions end with "End Function" in vbscript and not "}" as in jscript.

There are more tweaks but those are the ones I can think of off the top of my head.

KRMwebdesign

2:00 pm on Jan 26, 2010 (gmt 0)

10+ Year Member



Oh yeah cool, I thought it might be easy enough to convert it as the code seemed quite simple alright but I'm just worried that when I convert it there are some things that work with jscript that don't work with vbScript. Some things that may be completely different. Are you guys aware of any issues I may run in to? I'll give it a go converting it so. I'll let you guys know if I run into any problems. Thanks for the replies.