That is correct. alphanumeric only works on un broken strings of characters - presumably to test things like usernames.
There is no built-in validation rule that checks to see if a phrase contains only letters or numbers. On Jan 17, 11:36 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 18, 3:39 am, Rajesh <[EMAIL PROTECTED]> wrote: > > > I have a field called comment which is of type text in db. And i have > > the validation rule as alphaNumeric, required=true and message=>'some > > message' in the model. The field is rendered as text area. Now if i > > enter the value of comment as "sometext", this works fine and gets > > stored in db, but when i enter the value as "some text" (note - the > > space between 2 words), it throws the validation message and the data > > is not saved. > > Am i missing something ? > > A space isn't alpha numeric afaik. > > hth, > > AD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
