Re: forms addslashes ?

From: Date: Thu, 19 Jun 2003 07:28:48 +0000
Subject: Re: forms addslashes ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152119@lists.php.net to get a copy of this message
On Thursday 19 June 2003 20:27, Mukta Telang wrote: > 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! What exactly do you mean by "a lot of slashes" ? > How should this be done? Check in php.ini that: magic_quotes_gpc = Off -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Death is nature's way of saying `Howdy'. */

« previous php.general (#152119) next »