<?
$oFCKeditor = new FCKeditor('title') ;
$oFCKeditor->BasePath = '../../FCKeditor/' ;
$oFCKeditor->ToolbarSet = 'BoingTitle' ;//??
$oFCKeditor->Value = '' ;
$oFCKeditor->Width = '96%' ;
$oFCKeditor->Height = '60' ;
$oFCKeditor->Create('title') ;
?>比如这样建立的,那么提交后的判断。。
if (strlen($title)==0) echo "<script language=javascript>alert('字段空');history.back(-1)</script>";
这个是PHP的判断语句。

解决方案 »

  1.   

    if (strlen($title)==0) echo " <script language=javascript>alert('字段空');history.back(-1) </script>";这句放在那儿呢?
    我打开页面就提示字段空了,不是提交时候才提示。不太懂这些。
      

  2.   

    这个得需要用到FCK的API得到content,再在打开页面的onload中判断
    下载的FCK包中应该有API方面的例子的
      

  3.   

    2楼的兄弟说的可能要搞个单独的提交后的验证页面吧。
    4楼的朋友,我在例子里没有看到,好像也只有java的 php的简单的可怜。暂时没搞定,还是谢谢啦!
      

  4.   

                                 
         <br>