search
Homephp教程php手册php 获取 radio多选项值代码

php 获取 radio多选项值代码:

<form method=get> 
	<input type="radio" name="sex" id="sex1" value="1" /><label for="sex1">男朋友</label> 
	    <input name="sex" id="sex2" type="radio" value="2" checked="checked" /><label for="sex2">女朋友</label> 
	    <input name="sex" type="radio" id="sex3" value="" checked="checked" /><label for="sex3">不限</label>   
	<input name="提交" type="submit" /> 
	</form> 
	<? 
	if( $_GET ) 
	{ 
	 echo $_GET[&#39;sex&#39;] ; 
	} 

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment