This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > FrontPage Programming > March 2007 > validate a text box for an email address
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 |
validate a text box for an email address
|
|
| MajorHal 2007-03-23, 7:16 pm |
| Hi Experts,
I have a text box in a form that I want to accept email addresses only.
Is there a way to do this? I tried the conventional validation screen,but
nothing there that I can figure out.
Thanks for taking the time to help,
MajorHal
| |
|
| Major,
I've not done this for FP, but in Excel programming for Visual Basic
I've used the "regular expression" test
IF LIKE "?*@?*.?*" Then
whatever
END IF
This checks to see if there is any number of any character followed by
"@" followed by any number of any characters
followed by "." followed by any number of any character. I imagine you
could do the same thing
in JavaScript.
I'm a newby here, so you will probably get better advice...
Ed
"MajorHal" <MajorHal@discussions.microsoft.com> wrote in message
news:D7901DAB-0708-458D-806A-CDB83C9CD64C@microsoft.com...
> Hi Experts,
> I have a text box in a form that I want to accept email addresses
> only.
> Is there a way to do this? I tried the conventional validation
> screen,but
> nothing there that I can figure out.
>
> Thanks for taking the time to help,
> MajorHal
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|