OK, that validation rule works, kinda. If I remove the validation for the company name (temporarily) the rest of the form validation works, with one exception.
The new regex doesn't allow for upper case letters, only lower case. I tried changing it from; '/^[a-z]$/i' to: '/^[a-z][A-Z]$/i' --didn't work to: '/^[a-zA-Z]$/i' --didn't work I think there's something basic I'm missing here! As for the company name that still gives the same errors as before. Thanks for your help thus far, Felix. On Jul 13, 3:13 pm, McBuck DGAF <[email protected]> wrote: > Sorry, I wasn't looking at the regex itself, I was just looking at the > way you implemented it (and we have not addressed your 'company_name' > issue at all, but the solution here should be readily adaptable to > that). > > I am no regex expert, but wouldn't the following get you what you > want?: > > 'rule' => '/^[a-z]$/i', > > (the regex must be delimited by "/", which is probably the source of > your current error) > > On Jul 12, 7:18 pm, Felix <[email protected]> wrote: Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
