The code is about two thirds down the page in the tutorial
http://www.vodahost.com/vodatalk/for...-part-1-a.html
I'll copy and paste it here for you
Code:
<?PHP
$mailto = "youremail@yourdomain.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Type your mail subject here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?> Make sure you scroll down, there is a whole lot more content in the tutorial. The tutorial covers making the form itself.
Basically think of it as input -> process -> output
The form is the input, its where the user fills in information, when they submit it goes to another page which will process the data entered (in this case send the email). Finally the output, it is usually on the same page (as in this case).
I hope that has made things a little clearer