Re: problem with quotes (single and double) in forms
| From: | Chris | Date: | Thu, 10 Aug 2006 04:45:51 +0000 |
| Subject: | Re: problem with quotes (single and double) in forms | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240437@lists.php.net to get a copy of this message | ||
J R wrote:
try to use this few lines of code. function stripMagicQuotes(&$var) { if (get_magic_quotes_gpc()) {Then he has to modify all the code to call that function ;) -- Postgresql & php tutorials http://www.designmagick.com/$var = stripslashes($var);} return $var; } this way you don't really have to worry if magic quotes is on or off.