我的代码:
window.open("fill.php?id="+id,'','height=300px,width=700px,left=300px,top=200px,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
在fill.php能取到id的值,但是当我在fill.php中点击按钮提交之后,就取不到id的值,是什么原因阿?能解决吗?

解决方案 »

  1.   

    就我看,javascript里面的id变量,根本没有给赋值呢?可能性很大的说。
      

  2.   

    function check()
       {
     name=document.userinfo.username.value ;  
    window.open('regname_ok.php?username='+name, 'name','top=100,left=200,width=300,height=40,alwaysLowered=yes,z-look=no,scrollbars=no,resizable=yes,center:yes');

    }
    <input type="button" name="Submit22" value="检测用户名"   onClick="javascrip :check()">
    </span>
      

  3.   

    echo "window.open(\"fill.php?id=\"".$id.",\'\',\'height=300px,width=700px,left=300px,top=200px,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no\');";