Connecting Tech Pros Worldwide Help | Site Map

email

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 27th, 2008, 07:05 AM
WayneBurrows
Guest
 
Posts: n/a
Default email

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, 07:05 AM
WayneBurrows
Guest
 
Posts: n/a
Default 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, 07:15 AM
Wiktor Walc
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.