I'm trying to implement the FCK editor into my website but coming across a problem with retrieving data inputed into the editor and adding it to MYsQL for me to output to a page when requested. I'm able to show the fckeditor on my page with no problem. This is my code below,
Page that shows fckeditor
<?php $oFCKeditor = new FCKeditor('comment') ; $oFCKeditor->BasePath = '/FCKeditor/'; $oFCKeditor->Value = ''; $oFCKeditor->Create() ; ?>
my understanding after looking at the guide on the wiki site, the name of the textarea is contained within the "new FCKeditor('comment')" line but when i use the following code to retrieve the data.
case "postcomment": $commenttopost= htmlspecialchars( stripslashes( $_POST['comment'] ) ) ;
I keep getting nothing like nothing has been inputed and i have tried it the above way and following ways.
$commenttopost = $_POST['comment'];
$commenttopost = stripslashes($_POST['comment']);
I hope someone can tell me where im going wrong on this as this is a fantastic addon and excatly what im looking for and i don't see me having much success on coding my own bbeditor lol