php如何读取多选框数据
来源:互联网 发布:第二代民族政策 知乎 编辑:程序博客网 时间:2024/05/16 10:27
When you are using checkboxes to submit multiple choices, there is no need to use the complex method further down the page where you assign a unique name to eachcheckbox.
Instead, just name each checkbox as the same array, e.g.:
<input type="checkbox" name="items[]" value="foo" />
<input type="checkbox" name="items[]" value="bar" />
<input type="checkbox" name="items[]" value="baz" />
This way your $_POST["items"] variable will return as an array containing all and only the checkboxes that were clicked on.
摘自:php手册
- php如何读取多选框数据
- PHP: 如何连接oracle数据库进行数据读取
- microsoft access数据库文件在php中如何读取数据
- php中如何读取sqlite数据库文件的数据
- PHP中如何连接Mysql以及读取数据
- 【代码】js+php 如何实现select 两级联动+数据读取
- PHP MySQL 读取数据
- PHP读取数据库数据
- 【PHP】PHP逐行读取数据
- PHP如何读取COOKIES
- PHP如何读取COOKIES
- 如何读取配置文件数据
- PHP读取EXCEL中的数据
- PHP读取MySQL数据代码
- php 读取memcache二进制数据
- PHP怎么读取MySQL数据
- php逐行读取文件数据
- 1 PHP读取表数据
- xml-rpc-c学习有感—c语言不定参函数的实现
- 你在用什么英文搜索引擎
- 浅谈项目管理PMP学习心得
- MemCache--缓存软件
- 第七次作业反馈及参考答案
- php如何读取多选框数据
- Freescale 9S12 系列单片机应用笔记(ECT 模块) 5
- CI (CodeIgniter 2.1) 框架下Layout / 翻页等功能的实现
- poj2406(next数组理解)
- 本地多个数据库安装配置说明
- php如何从数组中删除一个元素
- Freescale 9S12 系列单片机应用笔记(ECT 模块) 4
- CreateProcess
- MySQl心得4--5--数据库视图