I'm trying out a simple PHP example from this page:

http://hotwired.lycos.com/webmonkey/...tw=programming

Here's index.php:

PHP Code:
<html
 <
head
 <
title>My Form</title
 </
head
 <
body

 <
form action="bad.php" method=post

 
My name is:
 <
br> <input type="text" name="YourName"

 <
pMy favorite dirty word is
 <
br> <input type="text" name="FavoriteWord"
 <
p>

 <
input type="submit" name="submit" value="Enter My Data!">
 </
form>

 </
body>
 </
html
And here is bad.php:

PHP Code:
<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>
When I run it, I get this error on bad.php:

Notice: Undefined variable: YourName in C:\My Documents\My Webs\php\bad.php on line 10


You like the word
Notice: Undefined variable: FavoriteWord in C:\My Documents\My Webs\php\bad.php on line 13
!?!


What am I doing wrong? In ASP, whenever I submitted a form, I had to request the variables passed. I don't see it so far in PHP.

Any help is good
Thx.