Hi i have recently installed php and apache 1.3.29.
i can run scripts like this fine.
<html>
<head>
<title> Chicken Man Example </title>
</head>
<body>
<font color="red">My PHP code makes this page say:</font>
<p>
<?php
print ("I am the CHICKEN MAN");
?>
</body>
</html>
This works.
but when i try to print the details from a form itr doesnt work.
The code below is from a tutorial so im guessing it must be something to do with configuration.
Please help
<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>