forms addslashes ?

From: Date: Thu, 19 Jun 2003 12:27:36 +0000
Subject: forms addslashes ?
Groups: php.general 
Request: Send a blank email to php-general+get-152116@lists.php.net to get a copy of this message
Hi, I want to add slashes to a string, if it contains quotation marks and which is received as input from a form, so that I can enter it to a database. What I am doing is as follows: echo "<input type=\"text\" name=\"title\">; $title=addslashes($title); But the string that gets added has a lot of slashes! How should this be done? Mukta

« previous php.general (#152116) next »