Hello Everyone,
This is my first time posting and my first time working with PHP. I am teaching myself using the tutorial located here at webmonkey.
I'm having trouble with the first form the tutorial has you create. I'm running Apache 1.3. I was successfully able to view the PHPinfo page so I know PHP is installed and working. Listed below are the form and script that I have created. Any insight on to why it is not working would be appreciated. Below the form and script is a description of the problem.
Form:
<html>
<head>
<title>What Kind of Geek Am I?</title>
</head>
<body>
<form action="geek.php" method=post>
My name is:
<br> <input type="text" name="Name">
<p>My favorite sci-fi/fantasy tv show is:
<br> <input type="text" name="Show">
<p>
<input type="submit" name="submit" value="Geek Me!">
</form>
</body>
</html>
Script:
<html>
<head>
<title>Perv!</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
Hi <?php print $Name; ?>
<p>
You like the show <b> <?php print $Show; ?> !?! </b>
<p>You oughta be ashamed of yourself!
</body>
</html>
On submit the information that is put in the form is not displayed at all on the script page. The page simply reads:
Hi,
You like the show !?!
You oughta be ashamed of yourself!