php3-list | 199807
Date: 07/02/98
- Next message: Zeev Suraski: "Re: [PHP3]"
- Previous message: Chad Cunningham: "[PHP3] form data"
- In reply to: Chad Cunningham: "[PHP3] form data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>I am having a problem putting form data in a database. I thought I read
>somewhere that php will automatically put a \ before any ' or " characters
>that are sent through a form. But, when I send data with my form, if it
>has a ' in it, it doesn't make it to the database. It doesn't even get
>chopped off, it just doesn't get inserted into the database. I can send
>any text fine, as long as it doesn't have a ' or ". Is this suppossed to
>happen? Is there an easy fix, or do I need to do an ereg_replace for my
>form data?
Check to see if you have MagicQuotes turned on in you php3.ini file (or set
at compile time). Alternately, use the AddSlashes() function.
------------------------------
Martin J. Koistinen
Internet Technology Engineer
Oilfield Marketing Support
Sugar Land, TX 281-285-7847
------------------------------
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html
- Next message: Zeev Suraski: "Re: [PHP3]"
- Previous message: Chad Cunningham: "[PHP3] form data"
- In reply to: Chad Cunningham: "[PHP3] form data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

