Ok, I got it to work but there has to be an easier way than this. Basically I took the html/text from the textarea on the previous form and put it into a variable called $datatwo. I then create a .php file with $content = "$datatwo";
Next I include that file I just made and echo $content and everything gets displayed correctly...odd...there has to be an easier way to do this.
$rand = time();
$dbfinal = "<?php \n \$content = \"$datatwo\";\n?>"; /*$datatwo is the data from the previous forms textarea*/
$endit = ".php";
$filename = "../news/$rand$endit";
$fp = fopen($filename, "a");
$write = fputs($fp, $dbfinal);
fclose($fp);
include($filename);
echo "<p class=main4>$content</p>";
This will actually display the HTML and Text like a normal webpage now, but there really has to be an easier way. Any ideas?