If I type in text without clicking any of the icons from editor it saves in my database, but if I click something like [B] from the editor to make my text bold it will not save anything.
<?php
//This is the page for updating the contactus section
session_start();
if(!isset($_SESSION['username'])){
require ("error.php");
} else {
include ('header.php');
include ('functions.php');
?>
<table width="800" align="center">
<tr>
<td align="center">
This section updates the contactus section. Clicking on the save button will override the current Contact Us information.
</td>
</tr>
</table>
<br />
<table width="800" align="center">
<tr>
<td align="center">
<?php
//Update contactus
if (isset ($_POST['submit'])) {
$contactus = ($_POST['contactus']);
$contactus = trim($contactus);
if ( !empty ($contactus) ) {
//Update...
$updatecontactus = "UPDATE contactus SET contactus=\"$contactus\"";
$updatecontactusresult = mysql_query ($updatecontactus);
echo '<font color="red">Contact Us section has been updated.</font><br /><br />';
}
else {
echo '<font color="red">Contact Us section is empty.</font><br /><br />';
}
}
?> [<a href="../contactus.php" target="_blank">View Contact Us Section</a>]
<br />
<br />
<b>Update Contact Us Section Below</b>
<br />
<form method="post" action="contactus.php">
<?php
###################
##FCKEDITOR START##
###################
include_once("fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('contactus');
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = '';
$oFCKeditor->Create();
###################
###FCKEDITOR END###
###################
?>
<br />
<br />
<input type="submit" name="submit" value="Save" />
</form>
</td>
</tr>
</table>
<?php
}//End session else
?>
