【发布时间】:2018-03-09 11:57:23
【问题描述】:
我想在我的 android 项目中执行与下面相同的操作,我该怎么做?
HTML:
<html>
<body>
<form action="npost" method="post">
<input type="checkbox" name="n1[]" value="1">
<input type="checkbox" name="n1[]" value="2">
<input type="checkbox" name="n1[]" value="3">
</form>
</body>
</html>
PHP:
$s1 = $_POST["n1"];
【问题讨论】:
-
你能不能不把
params.put("s1"改成params.put("s1[]"? -
no "s1[]" not working 它会返回单个数据,因为它是 Map
-
s1 ????使用“n1[0]”、“n1[1]”和“n1[2]”。
-
如果你有大数据并且还有要写入服务器的自动化数据,它不会很有趣
-
当然可以。只做一个循环。很简单。