By stevieke on
Hello everybody
I have made a form and set hook-validation on it
I found out there is a function for validate an email( valid_email_address) and also for empty fields(empty)
Now i was wondering... is there something like this for only numbers? and for only letters?
Thanx in advance
Comments
nope i dont think so there are any built in validators
instead use php functions
for validating integers
for only taking string use any regular expressions there are many available on net
There is the function
There is the function "valid_email_address". It's not perfect by a long way, but it does the basics.
FiveRDesign - UK Drupal Consulting, Development, Custom Modules & Support
MySweetShadow - Heavy Metal Blog, Drupal & SEO