NicEdit数据不在POST中

Ste*_*lor 5 html php nicedit

我确定我错过了一些非常简单的东西,我已经搜索过,似乎无法找到答案.

用这个简单的形式.如何从NicEdit框中获取内容到我的HTTP POST.我得到的只是原始textarea值而不是编辑过的verison.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<h2>Test Page</h2>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
<table class="form">
<form action="test.php" enctype="multipart/form-data" method="POST">
<tr> 
    <td><textarea rows="10" cols="100" name="3">A long time ago in a galaxy far, far away...</textarea></td>
</tr>
<tr>
    <td align="center" style="padding-bottom: 10px;"><input type="submit" onclick="window.scrollTo(0,0)" name="update" value="Save Changes"></td>
</tr>
</form>
</table>
<?
print_r($_REQUEST); 
?>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

Ved*_*ant 15

看看我如何解决它:

<textarea id="area1" name="content"></textarea>
<INPUT type=submit name="submit" value="Send" onclick="nicEditors.findEditor('area1').saveContent();">
Run Code Online (Sandbox Code Playgroud)