Hello,
This is my first time using FckEditor. I have it running 90% properly. So the issue is after the form is submitted, when I retrieve the value it is just plain text not HTML.
Here's my FckEditor Generator Code:
And the way I am retrieving the value is:
My server doesn't have MagicQuotes so it doesn't matter :p.
For example if I make my text bold in the editor or apply any HTML it looks fine in the editor. But after submission the variable $contents holds just the plain text.
Thanks in advance!
This is my first time using FckEditor. I have it running 90% properly. So the issue is after the form is submitted, when I retrieve the value it is just plain text not HTML.
Here's my FckEditor Generator Code:
<?php include("./fckeditor/fckeditor.php"); ?>
<html>
<head>
<link href="./fckeditor/sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form attributes>
<?php
// Automatically calculates the editor base path based on the _samples directory.
$oFCKeditor = new FCKeditor('PageContentsToUse');
$oFCKeditor->BasePath = './fckeditor/'; // '/fckeditor/' is the default value.
$oFCKeditor->Value = "Some Data";
$oFCKeditor->Height = "615";
$oFCKeditor->Width = "600";
$oFCKeditor->Create();
?>
</form>
</body>
</html>And the way I am retrieving the value is:
$contents = $_POST['PageContentsToUse'];
My server doesn't have MagicQuotes so it doesn't matter :p.
For example if I make my text bold in the editor or apply any HTML it looks fine in the editor. But after submission the variable $contents holds just the plain text.
Thanks in advance!

Re: FckEditor Posts only PlainText
I figured out the problem. In my php script, it was stripping all HTML from $_POST variable.
Fixed it, and it's working great.