Connecting Tech Pros Worldwide Help | Site Map

email

  #1  
Old March 27th, 2008, 08:05 AM
WayneBurrows
Guest
 
Posts: n/a
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
  #2  
Old March 27th, 2008, 08:05 AM
WayneBurrows
Guest
 
Posts: n/a

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?
  #3  
Old March 27th, 2008, 08:15 AM
Wiktor Walc
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking email address for @ and . characters libsfan01 answers 26 June 30th, 2006 02:35 PM
Email Policy Violation` BSG-SMTP-Gateway@birdsall.com answers 2 December 17th, 2005 05:25 AM
Determine user's default email client Mike answers 88 July 23rd, 2005 03:46 PM
Multiple Email Recipients depending on Value dmiller23462 answers 4 July 22nd, 2005 01:14 AM
Using Php to receive - read email Chuck Anderson answers 12 July 17th, 2005 05:10 AM