As pointed out, this is an ASP (serverside) newsgroup, whereas you seem
to be posting clientside javascript. If you want help with clientside
javascript, you should find a more appropriate newsgroup to post to.
However... if you want to do serverside email validation, check out the
following two articles:
"Powerful Form Validation Using ASP"
http://www.asp101.com/articles/hojja...on/default.asp
This article shows how to check for basic email address requirements.
"Validating Email Addresses with ASP"
http://www.asp101.com/articles/hojja...up/default.asp
This article shows how to use freely available websites to do an MX lookup.
VbUser25 wrote:[color=blue]
>
> thanks a plenty for responding back.
>
> now i got the error rectified but facing another problem :-( this
> function works well but somehow when i write a@gdhd it accepts it! i
> feel it should search for a "." at least?? am i right in my thots or
> not? if i write a@fhh then it gives the error message!
> here is hte piece of code:
> if (document.f.repemail.value != ""){
> if(!(test(document.f.repemail.value))) {
> alert("Please Enter a valid Email ID!");
> document.f.repemail.focus();
> return;
> }
> }
>
> function test(src)
> { var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
> var regex = new RegExp(emailReg);
> return regex.test(src);
> }
>
> pls pls do sugest..i am confused
> thanks
>
>
>
> *** Sent via Developersdex
http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]