Your basic HTML form lets say it is saved as form.html

<body bgcolor="#FFFFFF">

<FORM ACTION="test.php" METHOD="POST">Your Freinds name

<INPUT TYPE="text" NAME="name" SIZE="20" MAXLENGTH="30">

Your Name

<INPUT TYPE="text" NAME="freind" SIZE="20" MAXLENGTH="30">

Their e-mail address

Your message about this site<

<INPUT TYPE="text" NAME="message" SIZE="50" MAXLENGTH="90">

<INPUT TYPE="submit" VALUE="Send it!">
Now notice in the form action it says test.php Well that calls for a seperate page to process the info

mail ("$email", "$name... $freind wants you to check this site", 
"$message !n !");?>  
And the above code is what you would find on that page. The file is save as test.php and processes the variables from the form.

This one sends and e-mail out.

it uses the
mail () function
in PHP **this requires sendmail to be installed**

All the $words you see are the variables from the HTML form.

$email", is who this will be sent to

"$name, The persons name who will recive it

$freind The name of who sent it

wants you to check this site this will apear in the subject line

And there is more, I myself am still learning PHP. but you can add a reply to function in the header with will give the correct e-mail addy to reply to.