Undefined variable的问题--新手
刚学PHP,Win2000+OmniHttpd2.10+PHP4.3
代码:
<html>
<head>
<title>Who Are You?</title>
</head>
<body>
<form action="you_are.php">
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>
结果显示:
Please enter your name:
I am...
Notice: Undefined variable: person in C:\httpd\HTDOCS\who_are_you.php on line 9
下面是输入框和按钮。
书上说PHP变量是不用定义的啊???