Ahh yes, that was exactly what I needed. (I knew it was simple!)
But that brings up another question: whenever I have POST information
propagate over more than one page, is it generally a good idea to *always*
use htmlspecialchars () on my data?
I.e., even if the data shouldn't need htmlspecia
On 20-Jul-2001 garman wrote:
> I'm creating a specialized "suggestion box" type of web application in PHP.
> I'm using MySQL for data storage.
>
> Whenever I try to submit text that contains a double quote character ("),
> the
> submission gets truncated at the first occurance of a double quot
you can try the lazy man's wayI just
replace the double quotes using ereg with "
whatever the html code is for quotes. I store in my
mysql that way and write it to web pages
--- garman <[EMAIL PROTECTED]> wrote:
> I'm creating a specialized "suggestion box" type of
> web application in
Friday, July 20, 2001 12:44 PM
Subject: RE: [PHP] inserting free-form text with quotes to mysql
> Dude! I already said that wasn't working :)
>
> MG
>
> >= Original Message From "Jason Bell" <[EMAIL PROTECTED]> =
> >$newstring = addslashes($
Dude! I already said that wasn't working :)
MG
>= Original Message From "Jason Bell" <[EMAIL PROTECTED]> =
>$newstring = addslashes($oldstring);
>
>then, use $newstring for everything should work.
>
>- Original Message -
>From: "garman" <[EMAIL PROTECTED]>
>To: <[EMAIL PRO
$newstring = addslashes($oldstring);
then, use $newstring for everything should work.
- Original Message -
From: "garman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 11:57 AM
Subject: [PHP] inserting free-form text with quotes to mysql
> I'm creating a
6 matches
Mail list logo