I believe this is based on the version of PHP your machines are running. (4 vs 5)
I also think there is a submitted ticket for the issue but I have the time to search. Google alphanumeric issue in Cakephp and Im sure you'll find the details. On Dec 17, 3:00 pm, RyOnLife <[email protected]> wrote: > This one has me completely stumped! > > The validation rule I've pasted below works fine on my local machine, but > when I test a user registration on my server, it kicks the "Letters and > numbers only" error message, even if the input is valid. > > Both local and server are running Cake 1.2.0.7692 RC3 and PHP 5.2.6. > > 'username' => array( > 'alphanumeric' => array( > 'rule' => 'alphaNumeric', > 'message' => 'Letters and numbers only', > ), > 'unique' => array( > 'rule' => 'isUnique', > 'message' => 'This username is taken' > ), > 'between' => array( > 'rule' => array('between', 3, 15), > 'message' => 'Between 3-15 characters', > 'required' => true, > 'allowEmpty' => false > ) > ) > > Any ideas? Thanks. > -- > View this message in > context:http://n2.nabble.com/validation-rule-works-locally%2C-but-not-on-serv... > Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
