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'.
*/


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

Reply via email to