Newbie question
| From: | Gajo Csaba | Date: | Wed, 24 Mar 2004 21:10:03 +0000 |
| Subject: | Newbie question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-33628@lists.php.net to get a copy of this message | ||
Hi!
I'm new to PHP, so this may be an easy question. I tried to make a
simple form-page, where the user enters his name, and on the following
page it says "Hello $name". What happens is that on the second page it
says soemthing like "unknown identifier $name".
I'm using Apache 2 so that may be causing the problem, cause this is a
clear textbook example:
---------------------- first.php ----------------------
<html>
<head>
<title>First</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#cbda74"
vlink="#808040"
alink="#808040">
<form action="second.php" method="post">
<b>Whats your name?</b>
<input type="text" name="name" size="20" maxlength="20"
value=""><br>
<input type="submit" value="go!">
</form>
</body>
--------------- second.php --------
<html>
<head>
<title>Second</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#cbda74"
vlink="#808040"
alink="#808040">
<?
print "Hello $name!";
?>
</body>
</html>