Re: escape characters

From: Date: Mon, 22 Mar 2004 11:17:45 +0000
Subject: Re: escape characters
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33594@lists.php.net to get a copy of this message
Matt, love your show! Use the addslahses function to escape ' " \ characters. See http://php.net/addslashes for details. Jimmy Brock "Matthew Perry" <mwperry@mail.uh.edu> wrote in message news:405E6BD8.9010502@mail.uh.edu... > 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?

« previous php.db (#33594) next »