<IFRAME id="myFCKeditor___Frame" src="FCKeditor/editor/fckeditor.html?InstanceName=myFCKeditor&amp;Toolbar=Default" frameBorder=0 width=100% scrolling=no height=500>
</IFRAME>
以上是我的代码,我想在编辑框里显示数据库里的内容,
<?=$row["$content"]?>这个应该添加在哪里,怎么修改?

解决方案 »

  1.   

    我不是用你这种方法添加FCK的。我的代码如下:
    <tr>
    <td>内容</td><td>
    <?php
    include_once("fckeditor/fckeditor_php5.php");
    $oFCKeditor = new FCKeditor('FCKeditor1');
    $oFCKeditor->BasePath = '/study/fckeditor/';
    $oFCKeditor->ToolbarSet = 'Default';
    $oFCKeditor->InstanceName = 'content' ;
    $oFCKeditor->Width = '100%' ;
    $oFCKeditor->Height = '600px' ;
    $oFCKeditor->Value = '' ;//这里可以很方便设置value
    $oFCKeditor->Create() ;
    ?></td><td><div id="contentMessage"></div></td>
    </tr>
      

  2.   

    一般用类的方法添加FCK,这样调试起来很方便!
      

  3.   

    那我提交后要输出内容的话是这样吗:
    echo $_POST["FCKeditor1"];
    但我这样输出的是空的
    为什么?