<select name=username onchange="top.frameName.username.value="+this.value>

解决方案 »

  1.   

    楼上的,得到的这个值在2.php中我怎么传递到php中啊,2.php中我是用php连接数据库来查询数据的.这个值我在查询的where字句中会用到(select * form user_table wherer username=***)
      

  2.   

    <select name=username onchange="top.frameName.location='?username='+this.value">$_GET[username];
      

  3.   

    <select name=username onchange="top.frameName.location=2.php?username="+this.value>
      

  4.   

    楼上两位,没办法更新2.php啊,我还想刷新2.php呢,下拉改变,2.php肯定要刷新的,怎么刷新啊,最好能写成一个js的function
      

  5.   

    唉,没有想要的答案还是给分吧,不知道这个算不算是csdn的一个失误啊!