请教一编辑器的应用。。。求输入出数据

请教一编辑器的应用。。。求输入出数据



[复制到剪切板]
CODE:
<?php
header
('Content-Type:text/html;Charset=utf-8;');
include_once(
'sinaEditor.class.php');
extract($_POST);
extract($_GET);
unset(
$_POST,$_GET);
$act=='subok' && die("提交的内容是:<br>".htmlspecialchars($gently_editor));
$editor=new sinaEditor('gently_editor');
$editor->Value='<img src="../logo.gif"><h2>新浪博客编辑器PHP图片上传版!
</h2>'
;
$editor->BasePath='.';
$editor->Height=500;
$editor->Width=650;
$editor->AutoSave=false;
?>
<
div align="center">
<
form name="form1" id="form1" method="POST" action="index3.php?act=subok">
<?
php
    $editor
->Create();
?>
<
br />
<
input type="submit" value="提交">
<
input type="reset" value="重置">
</
form>
</
div> ;

上面是我编辑器的代码,我希望当表单提交的时候会出现一个$_POST['act']值,并且这值就是editor编辑器里的原代码内容

附件有带有此编辑器源码

附件

pxw_edit.rar (219.21 KB)

2009-4-8 06:23, 下载次数: 0

<input name="act" type="hidden" value=<?php echo $gently_editor;?>>

[ 本帖最后由 xing393939 于 2009-4-8 17:53 编辑 ]