Posted by ChevyDriver on 07/02/05 03:34
I'm in the process of learning php and using WROX Beginning PHP 4 book and
I'm in the chapter where it goes over Getting Data from the Client. The
first page gets me to create this code:
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form method="get" action="text.php">
Who is your favourite author?
<input name="Author" type="text">
<br>
<br>
<input type="Submit">
</form>
</body>
</html>
and the php page code is:
<html>
<head>
<title>Untitled</title>
</head>
<body>
Your favourite author is:
<?php
echo $Author;
?>
</body>
</html>
When I process the page in EI, I get the following message: Notice:
Undefined variable: Author in E:\learning_php\Chapter3\text.php on line 12.
Can someone tell me what I'm doing wrong?
Thanks.
Navigation:
[Reply to this message]
|