Hi

I've got a model that uses

'rule'=>array('postal',null,'uk')

to successfully validate UK postcodes.

However testing has shown that many people enter their postcodes in
forms without using the space, so:

W1W 5QU  <-- validates
W1W5QU  <-- does not validate

Has anyone got any tips on getting the validation to work irrespective
of whether a user includes or excludes the space?

Thanks
c5
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to