Home > Backend Development > PHP Tutorial > PHP多值传递,该如何解决

PHP多值传递,该如何解决

WBOY
Release: 2016-06-13 10:19:04
Original
866 people have browsed it

PHP多值传递
如果有多个单选框,怎么同时把多个单选框的值传到PHP进行处理?
比如我的考试系统有5个单选题,现在选择完成,要自动进行评分,怎么传递数据到PHP进行处理?

------解决方案--------------------
你那样不行吗? 只要选中php就能获取到. 
 print_r($_POST); 就知道了。
------解决方案--------------------
看下php复选框怎么传值取值吧
------解决方案--------------------
不就是表单传值吗?是这个意思吗
------解决方案--------------------

探讨
引用:
你那样不行吗? 只要选中php就能获取到.
print_r($_POST); 就知道了。

这样打印倒是可以,不过数组下标就是题号要怎么提取出来?
Array ( [11] => B [17] => B [3] => A [27] => B [9] => B [18] => B [15] => B [6] => B [16] => B [25] => B [20]……

------解决方案--------------------
探讨
引用:
引用:
你那样不行吗? 只要选中php就能获取到.
print_r($_POST); 就知道了。

这样打印倒是可以,不过数组下标就是题号要怎么提取出来?
Array ( [11] => B [17] => B [3] => A [27] => B [9] => B [18] => B [15] => B [6] => B [16] => B ……

------解决方案--------------------
探讨

引用:
你那样不行吗? 只要选中php就能获取到.
print_r($_POST); 就知道了。

这样打印倒是可以,不过数组下标就是题号要怎么提取出来?
Array ( [11] => B [17] => B [3] => A [27] => B [9] => B [18] => B [15] => B [6] => B [16] => B [25] => B [2……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template