Home > php教程 > php手册 > php 获取 radio多选项值代码

php 获取 radio多选项值代码

WBOY
Release: 2016-05-25 16:46:32
Original
2140 people have browsed it

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;] ; 
	} 
Copy after login

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template