Re: escape characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matt, love your show!

Use the addslahses function to escape ' " \ characters. See
http://php.net/addslashes for details.

Jimmy Brock

"Matthew Perry" <mwperry@xxxxxxxxxxx> wrote in message
news:405E6BD8.9010502@xxxxxxxxxxxxxx
> I am trying to allow my users to enter quotes in their strings.  For
> instance instead of writing:    2 inch rod, they can write 2 " rod.  The
> problem is, of course, that " ends the string and all that is saved is
> any value before the ".  How do I get around this without using textarea?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux