Archive for the 'Typo3' Category

Typo3 - Email validation in forms

Saturday, December 9th, 2006

If you’d like to add validation to the standard email forms that are added in typo3, this is how you do it.

Say you want to add email validation. When you are editing the body text for the page form, I use this line of code:
Email: | *Email=input,50,100 | | EREG : Please enter a valid email address : ^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z]

[a-zA-Z\.]*[a-zA-Z]$

Voila!