Magic Quotes
| From: | Bruce Vander Werf | Date: | Fri, 14 Jun 2002 19:37:53 +0000 |
| Subject: | Magic Quotes | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-19818@lists.php.net to get a copy of this message | ||
Frankly, I've never quite "gotten" the whole quoting thing in PHP.
If magic_quotes_gpc is turned on in the environment:
1. I don't see slashes in any form variables outputted with echo() or
print() Does this mean that these functions effectively remove the slashes?
2. After posting the form variables, I don't see slashes when I view the
MySQL data in phpMyAdmin?
3. I do see slashes in e-mail messages sent with mail() using these
variables.
4. Why would you need to add slashes to anything put in a mysql database?
Can someone shed some light on what is going on?
--
Bruce Vander Werf
brucev@cyberlink.com