高分提问:为什么zzz.html中的hidden提交不到form123.php中(PHP设置没问题(其他的都行))???
为什么zzz.html中的hidden提交不到form123.php中(PHP设置没问题(其他的都行))???
如果代码不行请提出解决方法,谢了先.
文件:zzz.html
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<form name=form1 method=post action='form123.php'>
<script>
var abc = new Array();
document.write("<input type='hidden' name=abc[] value='aa'>");
document.write("<input type='hidden' name=abc[] value='bb'>");
document.write("<input type='hidden' name=abc[] value='cc'>");
</script>
<input type=submit value=提交>
</form>
</BODY>
</HTML>
文件:form123.php
<?php
print'<pre>';
print_r($abc);
print'</pre>';
?>