<?php include("fckeditor.php"); $sBasePath = $_SERVER['PHP_SELF'] ;//获取当前位置 $sBasePath = dirname($sBasePath).'/'; //echo $sBasePath; $oFCKeditor = new FCKeditor('con') ; $oFCKeditor->BasePath = $sBasePath ; echo $_POST[title]."<br>";//输出文本框添加的title内容 echo $_POST[con]."<br>";//输出在线编辑器的内容 ?> <form action="" method="post" > <input type="text" name="title" size="40" maxlength="40"/> <?php $oFCKeditor->Create() ; ?> <input type="submit" name="submit" value="添加"/> </form>