Hi all, I am creating a news letter that is editable by the client....I have two pages: index.php and preview.php....index.php contains all html forms etc. in this file, i have a textarea that would contain all code that the client would like to be previewed in preview.php...in other words, the client would enter all html code into this text area...the text area code looks like this:
Code: Select all
<textarea name="leftcolumn"></textarea>
.
This code is then posted to preview.php, where it is placed in a variable:
Code: Select all
$leftcolumn = $_POST["leftcolumn"];
Then i created another php variable to contain all outputted code and then echoed the whole thing...for example:
Code: Select all
$allcode = "<html>
<body>
<table>
<tr>
<td>".$leftcolumn."
</td>
<td>".$rightcolumn."
</td>
</tr>
</table>
</body>
</html>";
echo $allcode;
However, when the client enters the code for an image, or anything requiring quotes on either side, the code outputted looks like this:
This obviously does not display a picture...can anybody help? thanks
