<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www./TR/html4/loose.dtd"> <html> <head> <meta charset="utf-8"> </head> <body> <div id="header" style="width:1300px;height:100px;margin:0 auto;margin-bottom:10px;border:1px solid red">
</div>
<div id="content" style="width:1300px;height:400px;margin:0 auto;margin-bottom:10px;border:1px solid red"> <div id="formdiv"> <form action="" method="post"> <table> <tr> <td>标题</td> <td><input type="text" value=""></td> </tr> <tr> <td>标题</td> <td > <?php require("edit/fckeditor.php"); $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = dirname($sBasePath)."/edit/"; $oFCKeditor = new FCKeditor('con') ; $oFCKeditor->BasePath = $sBasePath ; $oFCKeditor->Width="600px"; $oFCKeditor->Height="250px"; $oFCKeditor->Create() ; ?> </td> </tr> <tr> <td colspan="2"><input type="submit" name="sub" value="提交"></td> </tr> </table> </form>
</div>
</div>
<div id="footer" style="width:1300px;height:100px;margin:0 auto;margin-bottom:10px;border:1px solid red">
</div>
</body>
</html>
<?php
if ($_POST["sub"]) { echo $_POST["con"]; }
?>
|