(初学者)php不能接受外来的变量!!!
书上说将php.ini文件中的track_vars项打开后就可以直接使用变量名调用外来的php变量了。但我用的是4.0.3版本,track_vars总是打开的,可页面间却传不了变量,为什么?请各位大虾不吝赐教。
//form.php
<html>
<head><title> step one: fill in a form </title></head>
<body>
<h2> please fill in the following form first.</h2>
<form action = "confirm.php" method = "post">
Name:<input type="text" name = "user[name]"><br>
<input type = "submit" value = "send">
</form>
</body>
</html>
//confirm.php
<html>
<head><title>step two: confirmation </title></head>
<body>
<h3> thank you!<br>
Now please confirm your information:
</h3>
<?
echo "name: $user[name]<br>\n";
?>
<a href="form.php"> back</a>
<a href = "register.php"> register</a> //还没写register.php
</body>
</html>
在我的机器上不好使,但到服务器上好使。我就想知道是不是什么地方配置错了,谢谢!