首先radio是单选,你可以定义
<input type="radio" name="test" value="1">
<input type="radio" name="test" value="2">
<input type="radio" name="test" value="3">
<input type="radio" name="test" value="4">
<input type="radio" name="test" value="5">
<input type="radio" name="test" value="6">然后传递test=?就可以了

解决方案 »

  1.   

    你说的我都是国了,不幸
    manage.php动态产生一个表格,包括radio
    还包括四个botton,用于激活windows.open打开一个小窗口re.php
    要求将radio所选的表格的信息显示在re.php上
    数据库已经实现,关键怎么将radio的值传给re.php
    来实现数据库的查找
    谢谢
      

  2.   

    不太清楚四个button与四个radio的关系我认为一个button四个radio就可以拉
      

  3.   

    <?
    $rad = "test1";
    $num = 6 ;
    ?>
    <script>
    function Submit_onclick() {
              var temp,temp1,i;          
              for (i = 0; i< <? echo $num ;?>; ++i) {
               if (true == document.Radio.<? echo $rad ;?>[i].checked) {
                  temp = document.Radio.<? echo $rad ;?>[i].value;          
               }
              }
              alert(temp);
              temp1 = "re.php?<? echo $rad ;?>="+temp;          
              window.location.href=temp1;        
              return true;
    }
    </script>
    <form name="Radio" method="post">
    <input type="radio" name="<? echo $rad ;?>" value="1">
    <input type="radio" name="<? echo $rad ;?>" value="2">
    <input type="radio" name="<? echo $rad ;?>" value="3">
    <input type="radio" name="<? echo $rad ;?>" value="4">
    <input type="radio" name="<? echo $rad ;?>" value="5">
    <input type="radio" name="<? echo $rad ;?>" value="6">
    <input type="button" name="submit" value="确定" language="javascript" onClick="return Submit_onclick()">
    </form>
      

  4.   

    window.open实现
    <input type="radio" name="test" value="1">
    <input type="radio" name="test" value="2">
    <input type="radio" name="test" value="3">
    <input type="radio" name="test" value="4">
    <input type="radio" name="test" value="5">
    <input type="radio" name="test" value="6">eval("window.open?***.php?test="+test.value);or
    href实现
    <input type="radio" name="test" value="1" onclick=cha(this)>
    <input type="radio" name="test" value="2" onclick=cha(this)>
    <input type="radio" name="test" value="3" onclick=cha(this)>
    <input type="radio" name="test" value="4" onclick=cha(this)>
    <input type="radio" name="test" value="5" onclick=cha(this)>
    <input type="radio" name="test" value="6" onclick=cha(this)>
    <input type=text name=test1 value="asdf"><a id="di">test</a>
    <script>
    function cha(a)
    {
    alert(a.value);
    var b = "***.php?test="+a.value;
    di.href = b;
    }
    </script>
      

  5.   

    oh,sorry,so big mistake,:)window.open实现
    <input type="radio" name="test" value="1" onclick="op(this)">
    <input type="radio" name="test" value="2" onclick="op(this)">
    <input type="radio" name="test" value="3" onclick="op(this)">
    <input type="radio" name="test" value="4" onclick="op(this)">
    <input type="radio" name="test" value="5" onclick="op(this)">
    <input type="radio" name="test" value="6" onclick="op(this)"><script>
    function op(a)
    {
    eval("window.open('***.php?test="+a.value+"','','')");
    }
    </script>
    window.open函数都写错了,见笑
    看你上面的需求,也就是这么写啦~:)