gflhx 发表于 2013-10-12 11:08:33

kindeditor获取内容传到后台没数据

用kindeditor编辑器往后台传数据,当数据量大的时候.用       $content = $this->input->post('content');获取的时候,竟然为空?
前台是这么写
      <formmethod="post" action="<?php echo site_url('admin_knowledge/knowledge_adddata') ?>"id="fooee_addform" enctype="multipart/form-data">
   <textareaname="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', {
            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');
但是当数据量大比如从网上复制一篇文章的时候,获取到的竟然为空?这是怎么回事?

相知犹按剑 发表于 2013-10-16 07:01:06

在php.ini里面可能有最大POST的设置,你检查过是多少么?是不是你POST的超过限制了。
尝试改大这个值。
页: [1]
查看完整版本: kindeditor获取内容传到后台没数据