Hello,
Having a bit of a problem sending HTML in a PHP variable and having it successfully printed out.
All HTML tags get commented out by PHP after printing the variable.
Heres what I've got so far. Basically this is all in a comment box as part of a HTML form. I want it so that I fill in the blanks, send it to a text file, then have php open that file and display the contents on another page.
So heres what is contained in the HTML form:
==================================================
<!--bar graphic--><img src="bar.jpg" width="50" height="9"><br>
<!--user graphic--><img src="j.jpg" width="25" height="25"><br>
<!--title--><h1></h1><br>
<!--url--><a href="http://www.name.html"></a><br>
<!--copy--><p1></p1><br>
=================================================
This is sent to a PHP script as a variable called $content and written to a text file. That bit works.
What I then want to do is get php to read it from a text file and display it as HTML. But what it is doing at the moment when it prints the $content variable is this:
=================================================
<!--bar graphic--><img src=\"bar.jpg\" width=\"50\" height=\"9\"><br>
<!--user graphic--><img src=\"j.jpg\" width=\"25\" height=\"25\"><br>
<!--title--><h1>test</h1><br>
<!--url--><a href=\"http://www.stylefrog.net\"></a><br>
<!--copy--><p1>ests</p1><br>
=================================================
As you can see it is keeping the comment tags and I need to get rid of those... i.e. turn it back into html code.
Any help would be grately appreciated,