萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> php 獲取 radio多選項值代碼

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>&nbsp;&nbsp;
<input name="提交" type="submit" />
</form>
<?
if( $_GET )
{
 echo $_GET['sex'] ;
}?>

copyright © 萬盛學電腦網 all rights reserved