Re: alphaNumeric validation in cakephp 1.2.0.6311-beta

2008-01-18 Thread Rajesh
I used custom validation and that worked. Is there any other rule available that is specific to a text area. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake

Re: alphaNumeric validation in cakephp 1.2.0.6311-beta

2008-01-18 Thread aranworld
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

Re: alphaNumeric validation in cakephp 1.2.0.6311-beta

2008-01-17 Thread AD7six
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

alphaNumeric validation in cakephp 1.2.0.6311-beta

2008-01-17 Thread Rajesh
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