【文件属性】:
文件名称:PHP中CheckBox多选框上传失败的代码写法
文件大小:42KB
文件格式:PDF
更新时间:2020-12-18 18:01:28
c ec php
用惯Java和其他语言的时候,表单上传只需要checkbox的name相同的时候就可以上传了
<input type="checkbox" name="checkbox" value="1"> 选项
<input type="checkbox" name="checkbox" value="2"> 选项
<input type="checkbox" name="checkbox" value="3"> 选项
<input type='button' value='\u786e\u5b9a' onclick="fun()"/>
但是PHP却只有在这种情况下,name要写成数组形式才能正常表单提交
<input