Hi
Using CKEditor to edit some text in a text field set up in my database.
I'm setting up the ckeditor in PHP:
The existing text is taken from the database and is displayed properly when the page loads up, and options i have my width/height and toolbar set up.
Also note, I'm currently using Dreamweaver and used its update wizard to set up the initial form. I just replaced the textarea input with the above CKEditor php code.
As I mentioned, the intial page load works, and the existing text shows up in CKEditor correctly (with formatting and everything).
What's wrong is that when I click Update to save the changes back to the database, the text portion becomes blank (the $_POST['testimonials_long'] variable is empty). I'm trying to work out what I've done wrong?
I can't seem to find anything else in the sample files or documentation that could point me in the right direction.
Any help appreciated!
Using CKEditor to edit some text in a text field set up in my database.
I'm setting up the ckeditor in PHP:
echo $CKEditor->editor("testimonials_long", <existing text from database>, options);
The existing text is taken from the database and is displayed properly when the page loads up, and options i have my width/height and toolbar set up.
Also note, I'm currently using Dreamweaver and used its update wizard to set up the initial form. I just replaced the textarea input with the above CKEditor php code.
As I mentioned, the intial page load works, and the existing text shows up in CKEditor correctly (with formatting and everything).
What's wrong is that when I click Update to save the changes back to the database, the text portion becomes blank (the $_POST['testimonials_long'] variable is empty). I'm trying to work out what I've done wrong?
I can't seem to find anything else in the sample files or documentation that could point me in the right direction.
Any help appreciated!
Re: CKeditor with PHP and saving text to MySQL