RE: [PHP] Maintain " and ' in html textfields - REPLY
| From: | Bryan Lipscy | Date: | Wed, 05 Mar 2003 04:49:13 +0000 |
| Subject: | RE: [PHP] Maintain " and ' in html textfields - REPLY | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138232@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/function.preg-quote.php
preg_quote($var, '\'')
preg_quote($var, '"')
Thank you for asking this question. I learned something new. This
looks like a good way to mitigate SQL Injection attacks as well.
-----Original Message-----
From: Daniel Guerrier [mailto:dan_guerrier@yahoo.com]
Sent: Tuesday, March 04, 2003 8:13 PM
To: 'php user group'
Subject: RE: [PHP] Maintain " and ' in html textfields - REPLY
I forgot to mention that I'm use add and stripslash
on
the data so magic quotes wouldn't help. The problem
is the " from the text is closing the " from the
html.
>
> --- Bryan Lipscy <x427279616e@monroe.net> wrote:
> > Look up magic quotes in the docs.
> >
>
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
> >
> >
> >
> > The docs are mmm mmm good.
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php