Not sure what your trying to do...

Are you trying to validate user input before saving new records?

Are you trying to format existing records in an edit?

Are you just trying to strip html tags from the post?

On Jul 25, 3:49 am, Web Test <[EMAIL PROTECTED]> wrote:
> i have a company adding form which contain 2 fields one for company
> name and other for the type .In the company name text box i tied to
> enter this <input type="text" name="txtname" value=""/>
>
> This creates a text box in the company listing instead of  displaying
> the entered text.
> How can we apply the htmlentiies () function with posted data?
>
> Can we use the sanitize helper ?
>
> When i tired to use the following code,but it generate a error that
> Undefined class name 'sanitize'
>
> App::import('Sanitize');
> class MyClass extends App Controller
> {
>
>       function  myfunction()
>     {
>       *$company_name =  Sanitize::addslashes($this->data['Company']
> ['name']);
>
>     }
>
> }
>
> can any one please tell me how can we validate such malicious
> inputs ?
>
> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to