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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.