IIS下php的配置问题(老问题)
我是一个菜鸟,很菜的那种。
软件如下
php-4.3.3-installer.exe
安装完成后,能自动配置好IIS“主目录”,并在winnt\有php.ini,运行phpinfo()也成功。
问题如下
---------who_are_you.php-------
<html>
<head>
<title> Who Are You ? </title>
</head>
<body>
<form action="you_are.php" method="post">
Please enter your name:<br />
I am...
<?php
print('<input type="text" name="person" value="'.$person.'" size="15" />');
?>
<input type="submit" value="Go!" size="15" />
</form>
</body>
</html>
--------------------
---------you_are.php---------
<html>
<head>
<title> You Are... </title>
</head>
<body>
<?php
print('Well,hello'.$person.',nice to meet you!');
print('<br />');
print('<a href="who_are_you.php?person='.urlencode($person).'">Back to Who Are You ?</a>');
?>
</body>
</html>
--------------
错误如下
----------
Notice: Undefined variable: person in c:\inetpub\wwwroot\wangwei\who_are_you.php on line 11
--------
查看winnt\php.ini有define_syslog_variables = Off;已经是关着的了
代码是书上的,抄的肯定没错,那么错在哪里了?