I'm having several problems with FCKeditor. Firstly, I can't figure out how to insert data from FCKEditor into a MYSQL Database. I'm not too well versed in this sort of thing so be easy on me please. Also, my submit button doesn't work. I have a form that needs to email to a list of subscribers using swiftmailer and then also insert into a database. I have the datbase correctly constructed, and swiftmailer was working just fine until I tried to incorporate FCK editor. The form doesn't email or do anything for that matter except refresh itself since I set up FCKEditor. Here's my code below.
Thanks a bunch,
***Page that User Sees***
<?php require_once('Connections/baseball.php'); ?>
RE: Inserting into MYSQL Database and submit
Legionsmith, In your code you have the line....
$oFCKeditor = new FCKeditor('FCKeditor1') ;
Search for it now so you know what Im talking about...
In the single quotes is the name that FCKeditor will give the textarea. So in your PHP file that catches all the form variables, you should be catching one called FCKeditor1.
You can of course change that name to what ever you want. So if you called it 'content', then your FCKeditor code would look like this....
$oFCKeditor = new FCKeditor('content') ...
... and your PHP script would look like this.. $form_content = $_REQUEST["content"];
Or somthing similar.
If you allow your users to edit stuff they have edited, then you can do the folloeing when your laoding your ediroter page...
$oFCKeditor->Value = $StuffTheyEnteredBefore;
If the submit button is not working then take it out and use your onw. Aslong as the editor appears within the form element, its contents will be sent to the PHP script you using to catch the variables.
Hope it helps.