1,105,352 Community Members

Validating a Textbox?

Member Avatar
tukky
Light Poster
40 posts since Apr 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I was wondering how i would be able to validate a textbox for the E-MAIL address of a person. For example it cant have anything like "`#[]-=+-></~| etc. it MUST have an @ and a .com or .co.uk at the end of the e-mail.

anyway i was wondering how i would be able to program this when the user types into the textbox they cant put in any of the other symbols?


and IF there is a missing @ or .com then the user should receive an error message telling them to make sure that they put them in.

how would i program that on a button?

thanks

Member Avatar
Nichito
Posting Virtuoso
1,724 posts since Mar 2007
Reputation Points: 393 [?]
Q&As Helped to Solve: 81 [?]
Skill Endorsements: 4 [?]
Featured
 
0
 

You can check out this snippet and edit it for email validation.

Question Answered as of 3 Years Ago by Nichito
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article