Re: StripSlashes Problem
| From: | 1LT John W. Holmes | Date: | Fri, 02 Aug 2002 10:59:07 +0000 |
| Subject: | Re: StripSlashes Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110802@lists.php.net to get a copy of this message | ||
If magic_quotes_gpc is ON, then the data is getting addslashes()
automatically on a form submission. If you are doing it again, that's where
the problem is.
---John Holmes...
----- Original Message -----
From: "Mark Colvin" <mark.colvin@ccmltd.co.uk>
To: "'1LT John W. Holmes'" <holmes072000@charter.net>
Cc: "Php (E-mail)" <php-general@lists.php.net>
Sent: Friday, August 02, 2002 6:37 AM
Subject: RE: [PHP] StripSlashes Problem
> John,
>
> Thank you for your reply. My magic_quotes_runtime is set to 'Off'. As you
> said, I shouldn't have to use StripSlashes but would I still need to use
> AddSlashes when inserting/updating? I can see the slashes in the database
> when I look at the tables but I am fairly sure that I do not add slashes
> twice? Are they being added automatically somewhere as a result of a
setting
> in the php.ini file?
> With regards to my use of mysql_result as opposed to mysql_fetch_*
> functions, I was ignorant of the performance hit and I will now re think
> around my database code.
>
>
>
> ****************************************************
> This e-mail is intended for the recipient only and
> may contain confidential information. If you are
> not the intended recipient then you should reply
> to the sender and take no further ation based
> upon the content of the message.
> Internet e-mails are not necessarily secure and
> CCM Limited does not accept any responsibility
> for changes made to this message.
> Although checks have been made to ensure this
> message and any attchments are free from viruses
> the recipient should ensure that this is the case.
> ****************************************************