next.php里面这么用就可以了
$_GET['username'];

解决方案 »

  1.   

    我想楼上是误会我的意思了。$_GER['username']是获取已经从浏览器串过来了的参数(比如:<form action = next.php method = post > <input type = text name = "username"> </form>就可以用$_POST[]获取用户的输入)。但现在用户没有输入,当用户点击一个连接的时候我想除了转入哪个连接以外,还要把已知的参数传进那个页面。但用我上发帖时的那句显然是不能传过去的,因为globle_variable已经off拉
      

  2.   

    最好还是使用<input type=text name="username">
    这样的,然后在next.php里$_POST['username'];
    其实是一样的道理。
      

  3.   

    这样说简单点:在一个页面(index.php)有一个连接连接到另一个页面(next.php).现在的问题是在转入next.php页面的时候怎样把index.php的参数也传入next.php页面。注意现在:global_variable已经设置成Off了,也就是说<a href = "next.php?username=xjf">这个语句是无法把username变量传入next.php的了。。
      

  4.   

    2楼的方法不行啊。。简单点:(呵呵)
    index.php的内容如下:<html> <body> <a href = "next.php?username=xjf">link</a> </body> </html>
    next.php的内容如下:〈? echo $_GET['username']; ?>
    大家注意哦:在浏览器中显示的结果并不是:xjf,而是什么都没有啊,也就是$_GET['username']; 的直为空。