因为复选框大多是几个同时存在的,我们都会name[]的名字必须是一个数组的 这样只要获取一个就可以了
代码如下 | 复制代码 |
1 处理表单的PHP页面代码: if(!empty($_POST['sport'])){ |
另一种方法
代码如下 | 复制代码 |
直接 $a = $_POST['weeks'] ;//这样得到的就是一个数组了,然后再把它转换成字符即可。 |
我们还可以用一做排序哦
代码如下 | 复制代码 |
php处理页面 $aid = $_POST['orderby']; foreach( $aid as $v=> $vv ) |
本文地址:
转载随意,但请附上文章地址:-)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft