把输出的值弄成radio不就行了,弄这么复杂.

解决方案 »

  1.   

    把值输给一个标签,例如 TEXT ,RADIO , CHECKBOX ,然后可以在1.ASP中通过
    REQUEST.FORM(“标签名”)获取值
      

  2.   

    做成radio不美观,一定要做成文字链接才行
      

  3.   

    <form name="form1" method="post" action="">
    <A style="cursor:hand" onclick="JavaScript:press(this);">20</A>
    <A style="cursor:hand" onclick="JavaScript:press(this);">30</A>
    <A style="cursor:hand" onclick="JavaScript:press(this);">40</A>
    <INPUT TYPE="hidden" name="hid">
    </form>
    <script language="JavaScript">
    function press(e){
      form1.action='1.jsp';
      form1.hid.value = e.innerText;
      //下一句是测试代码
      alert(form1.hid.value);
      form1.submit();
    }
    </script>
      

  4.   

    取值用 request.getParameter("hid");
      

  5.   

    <form name="form1" method="post" action="">
    <A style="cursor:hand" onclick="JavaScript:press();">20</A>
    <A style="cursor:hand" onclick="JavaScript:press();">30</A>
    <A style="cursor:hand" onclick="JavaScript:press();">40</A>
    <INPUT TYPE="hidden" name="hid">
    </form>
    <script language="JavaScript">
    function press(){
      form1.action='1.jsp';
      form1.hid.value = event.srcElement.innerText;
      //下一句是测试代码
      alert(form1.hid.value);
      form1.submit();
    }
    </script>