Jump to content
Sign in to follow this  
Tina H

Validate the email address

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

or you could get a bit fancier and use this custom function: IsValidEmail

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    dataclip 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.