[support] sanitizing text box input for sql searches (custom search)

spartaguy spartaguy spartaguy300 at gmail.com
Wed Mar 3 11:22:31 UTC 2010


Thanks! this should do the job.

On Wed, Mar 3, 2010 at 8:27 AM, Domenic Santangelo <domenics at gmail.com>wrote:

> http://api.drupal.org/api/function/db_query/6
>
>
> On Mar 2, 2010, at 3:08 PM, spartaguy spartaguy wrote:
>
> >
> >
> > Hello,
> >
> > I want to use the data from a textbox input to do a select statement on a
> sql db.
> >
> >  Are there any inbuilt methods that drupal uses to sanitize textbox
> inputs?
> > I'm worried if I accept data in a textbox and apply it to an sql command
> it will do bad stuff (tm).
> >
> > Is there a simple code snippet or module for sanitizing?
> >
> >
> >
> > Paul
> >
> > --
> > [ Drupal support list | http://lists.drupal.org/ ]
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100303/019e572e/attachment.html 


More information about the support mailing list