Newbies Tina H Posted July 28, 2007 Newbies Share Posted July 28, 2007 I am stuck. trying to write a script that validates the email address that the user enter's into my iwp. all i want to do is check to see if there is a "@" sign in the field somewhere. I have used position and length with the right and the left text functions, and i can't seem to get it to work. any help would be appreciated Thanks Tina Link to comment Share on other sites More sharing options...
Newbies Tina H Posted July 29, 2007 Author Newbies Share Posted July 29, 2007 I figured it out, never mind. Sticking with it pays off I guess in the end! my solution was If[Position(email; "@" ; 1 ; 1 ) = 0 it's bad so notify them about it before continuing figured it out that position gives the position number so if it isn't there it would be giving a zero as a response. anyway, thought i would say what i did. Thanks Tina Link to comment Share on other sites More sharing options...
bcooney Posted July 29, 2007 Share Posted July 29, 2007 or you could get a bit fancier and use this custom function: IsValidEmail Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6243 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now