sign...1. 在客户端用javascript一类的改
   当一个radio 被onclick的时候就去改另一个radio的checked 值2. 笨笨的在PHP里做的方法. 当那个radio的值为on(也就是checked)的时候改变另一个的值

解决方案 »

  1.   

    是不是这样呢?
    <script>
    function s(o)
    {
    if (o.name=='aa') {
    this.value = 1;
    alert(this.value)
    document.all.bb.checked = false;
    document.all.bb.value = 0;
    } else {
    this.value = 1;
    alert(this.value)
    document.all.aa.checked = false;
    document.all.aa.value = 0; }}
    </script>
    <input type="radio" name="aa" onclick='s(this)'>
    <input type="radio" name="bb" onclick='s(this)'>
      

  2.   

    夷,还在等吗?我来晚了
    干吗不变通一下
    <input type="radio" name="aa" value=0>
    <input type="radio" name="aa" value=1>
    不知道你具体应用是什么
      

  3.   

    <?php 
    echo $radio1."<br>";
    echo $radio2;
    ?>
    <script language="javascript">
    function change(a,b){
      a.value='1';
      b.value='0';
      b.selected=false;
    }
    </script>
    <form name='form1' method='post' action='s.php'>
    <div><input type="radio" name="radio1" value="" onclick='change(this,radio2)'></div>
    <div><input type="radio" name="radio2" value="" onclick='change(this,radio1)'></div>
    <div><input type="submit" name="submit" value="submit"></div>
    </form>
      

  4.   

    哇塞,就是你了
    TO:xuzuning(唠叨) 
    非常感谢,其实我就是不太懂这个单选扭该怎么用
    非常感谢