I am having problems with my 3rd php page. Im just gettin to know how the damn thing works, but wen i created a basic html form with a couple of variables on it, then a script to make some sort of repply i had the following errors:
Notice: Undefined variable: YourName in f:blah, blah....
Wen i tried to read y this was happening, i got a couple of answerss registering globals is turned off and shud be turned on. Or use the Get and Post methods to initialise the variables. If either of the above work how do they work??
This is the simple code i got from a tutorial site:
<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>
<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>
Please help as at the moment i feel like hitting my head against a brick wall!!!!
ngac