I tried the "addslashes" on the pages and in combination of using "
to bring in the data to begin with, it works somewhat, where I am
running into a problem now is the 2nd time it pulls the data out (it
adds it back in with ") I am getting the same errors.  I have tried
using the "addslashes" and when I view it IN the DB all I have are the
".

When I pull out the data again, I have a single " and it is not escaped,
though I have the addslashes working on it.

Do I need to post code or has this jarred someone's memory?

I guess I need to figure out how to read my $_POST[data] and parse that
to put in " because that seems to work, but not sure how to make
PHP do that.

Any thoughts?

Robert


-----Original Message-----
From: Torsten Roehr [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] " in data


>"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>[snip]
>I have data with "something" in it and when I pull that data and dump 
>it into an HTML form I am losing everything that is after the first " .

>Has anyone encountered this before, and have a way to patch it? [/snip]
>
>Yes, we have all encountered it. You need to escape the " character and

>other characters as well. Start here
>
>http://www.php.net/addslashes
>
>The manual is your friend

Another way is to convert the quotes to &quot; because this is the
proper character for HTML output.

Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to