View Single Post
  #1 (permalink)  
Old December 17th, 2004, 02:52 AM
xtimox xtimox is offline
Registered User
 
Join Date: Dec 2004
Location: , , Chile.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with Examples of Beginning with php4 Book

Hello everyone, i just started learning php with the book that i wrote on the subject of the topic.

My problem is that some examples doesn't seem to work for me. . .

on the text.html and text.php example of Chapter 3 i get this error:

Your favorite author is:
Notice: Undefined variable: Author in C:\Archivos de programa\Abyss Web Server\htdocs\beginningphp\text.php on line 6

i also get the same error when i try to echo the $HTTP_USER_AGENT or any Environment Variable

Perhaps i need to configure something in the php.ini file???

Here are my codes:

text.php

<html>
<head></head>
<body>
Your favorite author is:
<?php
echo $Author;
?>
</body>
</html>

text.html

<html>
<head></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>

Note that its happens the same with the codes that come with the book
What can i do to solve this???

Thanks in advice


Reply With Quote