PHP 代码:
<?php
if($_POST["ADD"]){
$Content=$_POST['EditorDefault'];
echo $Content;
//变量$Content就是我们在FCKeditord里面编辑的内容,这里可以将其保存到数据库里面
}
?>
<textarea FCKeditor="true" id="ADD" name="news_content"></textarea>
<?php
//引入在线编辑器
include("../FCKeditor/fckeditor.php") ;
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" language="javascript">
<?php
$oFCKeditor = new FCKeditor ;
// FCKeditor所在目录
$oFCKeditor->BasePath = '../FCKeditor/' ;
// 将FCKeditor实例化
$oFCKeditor->CreateFCKeditor( 'EditorDefault', '700', 300 ) ;
?>
PHP 代码:
<table width="660" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><textarea FCKeditor="true" id="editor1" name="news_content"></textarea> </tr>
</table>
也就是说 news_editor 写入数据库的值 = FCKeditor所录入的数据
另:更新页面应该怎么样呢?
还请各位指教 一二 小弟在这多谢了!









都跑那去了,没人帮俺一把吗?









平板模式