Image

Imageaminuet wrote in Imagephp

help me!!

I'm so sorry if this is completely beneath any of you, but I do need help.  I am a newbie and am currently trying to read this book to teach myself all about PHP.  I cannot figure out what I am doing wrong.


The example calls for two different files -- one which receives input and the other that I guess explains what to do with it.  Here are the two simple files:


File#1


<html>
<head><title>Welcome!</title></head>
<body>
<form action="eleven.php">
What's your name? <input type="text" name="userName">
<input type="submit" value="Continue">
</form>
</body>
</html>


File #2


<html>
<head>
<title>Welcome!</title></head>
<body>
<h4>
Welcome, <?= $HTTP_get_VARS['name'] ?>!
</h4>
</body>
</html>


But when I go to the first page and enter in a name, rather than reading "Welcome, NameIEntered!" it reads "Welcome,!"


Please help!  Did I do something wrong you think?