If anyone is having trouble using forms with PHP, here is a tutorial.
First you need to create your form, I will place it into a table to make it neat
PHP Code:
<form action="action.php" method="POST">
<table>
<tr>
<td>First Name</td>
<td><input type="text" name="fname" /></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" name="lname" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Go" /></td>
</tr>
</table>
</form>
Next you need to create the action.php, which I will explain.
PHP Code:
<?php
$firstname = $_POST['fname'];
$lastname = $_POST['lname'];
echo "Hello my first name is <b>$firstname</b> and my last name is <b>$lastname</b>";
?>
The first two lines get what the user entered in the form and save it into the corresponding variable, $firstname, or $lastname. Then it echoes it out to the browser for the last line.