I've installed PHP following Webmonkey's tutorial on my WinXP Pro SP1, using Apache as a server, and I'm stuck...
I've been trying to run some basic scripts, following just another of Webmonkey's tutorials, and I'm always getting a message: "Undefined variable... bla bla bla..."
The script I'm running is:
{form.html}
<html>
<head>
<title>My Form</title>
</head>
<body>
<form action="bad_words.php" method="post">
My name is:
<br> <input type="text" name="YourName">
<p> My favorite dirty word is:
<br> <input type="text" name="FavoriteWord">
<p>
<input type="submit" name="submit" value="Enter My Data!">
</form>
</body>
</html>
{bad_words.php}
<html>
<head>
<title>Perv!</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
Hi <?php print $YourName; ?>
<p>
You like the word <b> <?php print $FavoriteWord; ?> !?! </b>
<p>You oughta be ashamed of yourself!
</body>
</html>
Note that I've copied the scripts entirely from the tutorial, so I did not assume any syntax problems...