<?php
ini_set ('display_errors', 1);
error_reporting (E_ALL);
require_once('connect.php');
include ('fck/fckeditor.php');
?>
<html>
<h1>FCKEditor Test pagina .</h1>
<form action="" method="post">
<?php
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
$oFCKeditor = new FCKeditor('bericht');
$oFCKeditor->BasePath = 'FCK/';
$oFCKeditor->Height = '150';
$oFCKeditor->ToolbarSet = '';
$oFCKeditor->Create();
print'
<input type="submit" value="Submit">
</form>
</html>';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
mysql_query("INSERT INTO `fck` (`bericht`) VALUES ('".addslashes($_POST['bericht'])."')") or die (mysql_error());
}
?>
Thu, 03/20/2008 - 20:10
#1
