看看这段代码:为什么zzz.html中的hidden提交不到form123.php中(PHP设置没问题(其他的都行))??? 用hidden数组传递字符串根本就不行,因为在php中字符串本来就是数组,所以不能用数组传递字符串,想想用其他办法吧!关注! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 为什么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<?phpprint'<pre>';print_r($abc);print'</pre>';?> 关于dtree+ajax实现动态加载树 哪里有DOM参考? 简单问题 怎样打印文本框里的内容(关键是保留字体) ++++++++字串截取问题 一段JS代码在http://localhsot和http://本机IP下显示的效果不一样 请教高手:当鼠标指针移动速度太高时,能不能限制它去触发(onMouseOver,onMousemove)事件? confirm参数设置问题?? 请问再一个函数中,怎么调用多个函数?先谢谢了!!!!!!!!!!!! 如何用javascript实现横向打印。 如何取得select的option的text值 树形菜单问题
如果代码不行请提出解决方法,谢了先.
文件: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>';
?>