RE: [PHP] submitting free-form text to a database
| From: | garman | Date: | Mon, 16 Jul 2001 14:28:38 +0000 |
| Subject: | RE: [PHP] submitting free-form text to a database | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58049@lists.php.net to get a copy of this message | ||
>===== Original Message From Duncan Hill <dhill@pct.edu> =====
>On Mon, 16 Jul 2001, garman wrote:
>
>> box where the user enters a description of the item he is selling.
>> If the user's input contains an apostrophe (aka a single quote "'")
>> or even a double quote, the code gets confused.
>
>addslashes()
>
>RTM :)
I was originally using regular expressions to achieve the same effect as
addslashes(). But I switched to addslashes() anyway, and the problem
persists.
My guess is that MS Access uses a method other than slashes to escape quotes.
Matt