主题: 数组表单无法传递值,请教怎么解决
作者: winlive, 发布日期: 2009-12-19 17:23:41, 浏览数: 6919

<script  type="text/javascript" charset="utf-8"  src="../kindeditor/kindeditor.js" /></script>
<script  type="text/javascript">
function showeditor(did){
    KE.show({
        id : did,
        autoOnsubmitMode : false,
        cssPath : '../css/editor.css',
  items : [ 'source', 'undo', 'redo', 'block', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',        'insertunorderedlist']
    });
}
showeditor('content1');
showeditor('content2');
showeditor('content3');
showeditor('content4');
showeditor('content5');
</script>
<textarea name="contents[]" id="content1"></textarea>
<textarea name="contents[]" id="content2"></textarea>
<textarea name="contents[]" id="content3"></textarea>
<textarea name="contents[]" id="content4"></textarea>
<textarea name="contents[]" id="content5"></textarea>

<?php
$conentss[] = $_POST['contents'];
print_r($conentss);
?>
数组表单无法传递值,请教怎么解决

作者: winlive, 发布日期: 2009-12-19 17:26:25

请教高手,请将结果发到 winlive@163.com

回复
发表新帖 发表回复