11.asp<html>
<head>
<title>11</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body>
<form action="" method="post">
<input name="11" type="radio" id="11" value="11" checked >
<input name="11" id="12" type="radio" value="12">
<input name="11" id="13" type="radio" value="13">
<input name="11" id="14" type="radio" value="14">
</form>
<%
aa=Request.Form("11")
select case aa
case "11"
.......
case "12"
.......
case "13"
.......
case "14"
.......
end select%>
</body>
</html>

解决方案 »

  1.   

    这个是PHP版的:
    <form name="form1" method="post" action="">
      <input type="radio" name="radiobutton" value="radiobutton1"> 一级
      <input type="radio" name="radiobutton" value="radiobutton2"> 二级
      <input type="radio" name="radiobutton" value="radiobutton3">三级
      <input type="radio" name="radiobutton" value="radiobutton4">四级
      <input type=submit name=add value=添加>
    </form>
    <?PHP
    echo $_POST["radiobutton"];
    ?>
      

  2.   

    这个是PHP版的:
    <form name="form1" method="post" action="">
      <input type="radio" name="radiobutton" value="radiobutton1"> 一级
      <input type="radio" name="radiobutton" value="radiobutton2"> 二级
      <input type="radio" name="radiobutton" value="radiobutton3">三级
      <input type="radio" name="radiobutton" value="radiobutton4">四级
      <input type=submit name=add value=添加>
    </form>
    <?PHP
    echo $_POST["radiobutton"];
    ?>
      

  3.   

    <? if(!empty($a)) echo $a; ?>
    <form action="" method="post">
    <input name="a" type="radio" id="11" value="11" checked >
    <input name="a" id="12" type="radio" value="12">
    <input name="a" id="13" type="radio" value="13">
    <input name="a" id="14" type="radio" value="14">
    </form>
      

  4.   

    是单选按钮吧?用$radiobutton取值不就行了吗?