|
用kindeditor编辑器往后台传数据,当数据量大的时候.用 $content = $this->input->post('content');获取的时候,竟然为空?
前台是这么写
<form method="post" action="<?php echo site_url('admin_knowledge/knowledge_adddata') ?>" id="fooee_addform" enctype="multipart/form-data">
<textarea name="content" id ="content" style="width:700px;height:300px;"><?php echo $record["k_content"]; ?></textarea>
</form>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="content"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : ['source','fontname', 'fontsize', '|', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist']
});
});
</script>
后台用
$content = $this->input->post('content');
但是当数据量大比如从网上复制一篇文章的时候,获取到的竟然为空?这是怎么回事? |
|