<form name="form1" method="get" action="">
  <input type="text" name="textfield">
</form>

解决方案 »

  1.   

    可以通过表单中的action,也可以用js,不知道你的具体情况
      

  2.   

    我想取得该参数应用到Href中去该怎做?
    例如:<form name="form1" method="get" action="test.php?abc=&textfield">
      <input type="text" name="textfield">
    </form>
     <a href="test.php?textfield=textfield.value" target="_self">[注 册]</a> 
      

  3.   

    <form name="form1" method="get" action="test.php?abc=<?=$textfield?>">
    <input type="text",name="textfield">
    </form>
      

  4.   

    <input name="hy" type="text" value="参数">
    <a href="javascript:location.href='hy='+hy.value" >hello</a>
      

  5.   

    <form name="form1" method="get" action="test.php?abc=&textfield">
      <input type="text" name="textfield" onChange="document.getElementById('reg').href='test.php?textfield='+this.value">
    </form>
     <a href="test.php?textfield=textfield.value" target="_self" id="reg">[×&cent; &sup2;á]</a>
      

  6.   

    有些字体变花了,应该是
    <form name="form1" method="get" action="test.php?abc=&textfield">
      <input type="text" name="textfield" onBlur="document.getElementById('reg').href='test.php?textfield='+this.value">
    </form>
     <a href="test.php?textfield=" target="_self" id="reg">[注 册]</a>
      

  7.   

    有些字体变花了,应该是
    <form name="form1" method="get" action="test.php?abc=&textfield">
      <input type="text" name="textfield" onBlur="document.getElementById('reg').href='test.php?textfield='+this.value">
    </form>
     <a href="test.php?textfield=" target="_self" id="reg">[注 册]</a>