Connecting Tech Pros Worldwide Help | Site Map

email

WayneBurrows
Guest
 
Posts: n/a
#1: Mar 27 '08
I am trying to create some html with php and the double quote
character is somehow changing to \"

This renders some html useless.

Is there a work around here.

Wayne
WayneBurrows
Guest
 
Posts: n/a
#2: Mar 27 '08

re: email


On Mar 27, 7:59 pm, WayneBurrows <wjburr...@gmail.comwrote:
Quote:
I am trying to create some html with php and the double quote
character is somehow changing to \"
>
This renders some html useless.
>
Is there a work around here.
>
Wayne
Here is a simple example.

I start with this text in a form:

<table bgcolor="yellow" align="center"><td align="center"><font
color="blue"><b>Some text here<br>
more text</b></font></td></table><br>

and write the contents of this textarea to a webpage and to an email.
In both cases it becomes:

<table bgcolor=\"yellow\" align=\"center\"><td align=\"center\"><font
color=\"blue\"><b>Some text here<brmore text</b></font></td></
table><br>

Where do all of those "\" characters come from?
Wiktor Walc
Guest
 
Posts: n/a
#3: Mar 27 '08

re: email


WayneBurrows pisze:
Quote:
On Mar 27, 7:59 pm, WayneBurrows <wjburr...@gmail.comwrote:
Quote:
>I am trying to create some html with php and the double quote
>character is somehow changing to \"
>
Where do all of those "\" characters come from?
Search in a PHP manual for: magic_quotes_gpc
It is probably set to "On" on your server.

Possible solution: get_magic_quotes_gpc + stripslashes

--
CKFinder :: ajax web file browser
http://www.ckfinder.com
Closed Thread