- <div id="wrapper">
- <form name="form1" action="<?=$_SERVER["PHP_SELF"]?>" method="post">
- 标题:<input type="text" size="20" name="title" /><br />
- <?PHP
- include "fckeditor/fckeditor.PHP"; //包含文件
- $ofckeditor = new FCKeditor("fckeditor1"); //创建实例
- $ofckeditor->BasePath = "./fckeditor/"; //设置FCK的路径
- $ofckeditor->ToolbarSet = "Default"; //设置编辑器工具栏类型
- $ofckeditor->Width="700px";
- $ofckeditor->Height = "300px"; //设置编辑器高度
- $ofckeditor->Create(); //创建编辑器
- ?>
- <br />
- <input type="submit" name="submit" value="提交" />
- </form>
- <br />
- </div>
- <div>
- <?PHP
- echo $_POST["fckeditor1"];
- ?>
- </div>
路径不对,注意你的源代码: