We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,494 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Validating a Textbox?

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

2
Contributors
1
Reply
18 Minutes
Discussion Span
2 Years Ago
Last Updated
2
Views
Question
Answered
tukky
Light Poster
32 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

Nichito
Posting Virtuoso
1,722 posts since Mar 2007
Reputation Points: 424
Solved Threads: 73
Skill Endorsements: 3
Question Answered as of 2 Years Ago by Nichito

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.2907 seconds using 2.65MB