Re: " in data

From: Date: Fri, 18 Jun 2004 17:40:28 +0000
Subject: Re: " in data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188596@lists.php.net to get a copy of this message
>"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:C8F323573C030A448F3E5A2B6FE2070B03522644@nemesis... >[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

« previous php.general (#188596) next »