Hi
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'];
and
$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
Re: Problem retrieving input data
You could try to dump everything php know after submitting with phpinfo(); , not sure that helps though.
You might also be interested in my ajaxPost plugin, see http://www.saulmade.nl/FCKeditor/FCKPlugins.php
Re: Problem retrieving input data
i don't see how your plugin will help me retreive data thats been inputed into textarea, not sure where phpinfo() would help me either. anyone else got any ideas on whats going wrong here for me?

Re: Problem retrieving input data
anyone got any suggestions please?
Re: Problem retrieving input data
<?php echo "POST:"; var_dump($_POST); echo "GET:"; var_dump($_GET); ?>
enter some text in FCKeditor and check whether any of there arrays is not empty.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Problem retrieving input data
thanks wiktor
this is what was outputed
the ["$instanceName"] for the FCKeditor isn't returning the name I assigned in the settings. so i tried returning it with "$_POST['$instanceName']" and on test page it appeared to return. Shall test this out tomorrow and see if it has sorted problem. Thanks all, seems the dump suggestions here has led to a solution.
