The following code is something i found in the internet. The first portion show the file favourite_word.php which contain a form and post the result to favourite.php.
//favourite_word.php
<head>
<title>My Form</title>
</head>
<body>
<form action= "favourite.php" method=post>
My name is:
<br> <input type = "text" name = "YourName">
<p> My favourite word is:
<br> <input type = "text" name = "FavouriteWord">
<p>
<input type = "submit" name = "submit" value = "Enter My Data!">
</form>
</body>
The code below is the favourite.php
//favourite.php
<head>
<title>Prev!</title>
</head>
<body bgcolor="#000000" text="#FFFFFF:">
<p>
Hi <?php print $YourName; ?>
<p>
You like the word <b> <?php print $FavouriteWord; ?> !?! </b>
</body>
And the print out is shown below:
Hi
You like the word !?!
that's it ... the name should be prompt after "Hi" and the favourite words should be prompted between "... the word" and "!?!". Thanks for spending ue time for helping ...