Reply to Undefined variable error Help

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация