Anyone? :(
--
Louie Miranda (lmira...@gmail.com)
http://www.louiemiranda.net

Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)



On Wed, Jan 14, 2009 at 1:34 PM, Louie Miranda <lmira...@gmail.com> wrote:

> Hello,
>
> I tried two alphaNumeric validation, but I get a preg_match error.
>
>
>> *Warning (2): preg_match() [function.preg-match]: Compilation failed:
>> PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3
>> [CORE/cake/libs/validation.php, line 847]*
>>
>
> My code
>
> var $validate = array(
>>     /*
>>      * Validation: For authorization
>>      * Start
>>      */
>>     'officer_name'=>array(
>>         'alphaNumeric'=>array(
>>             'rule'=>'alphaNumeric',
>>             'required'=>true,
>>             'message'=>'This field is required and must contain
>> alphanumeric characters only.'
>>         )
>>         ),
>>     'officer_email'=>array(
>>         'email'=>array(
>>             'rule'=>'email',
>>             'required'=>true,
>>             'message'=>'Please enter a valid email address.'
>>         )
>>         ),
>>     'payment_officer_name'=>array(
>>         'alphaNumeric'=>array(
>>             'rule'=>'alphaNumeric',
>>             'required'=>true,
>>             'message'=>'This field is required and must contain
>> alphanumeric characters only.'
>>         )
>>         )
>>
>>     /*
>>      * Validation: For authorization
>>      * End
>>      */
>>     );
>
>
> When I add the last one, payment_officer_name I get the preg_match error.
> Is there something wrong on my approach?
>
> Help!
> --
> Louie Miranda (lmira...@gmail.com)
> http://www.louiemiranda.net
>
> Security Is A Series Of Well-Defined Steps
> chmod -R 0 / ; and smile :)
>
>

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

Reply via email to