Full instructions on using the PHP form handler are here.

Copy and paste all the information below into a web page of the type PHP between the BODY tags. Save it as contact.php

// Website Contact Form Generator
// http://www.tele-pro.co.uk/scripts/contact_form/
// This script is free to use as long as you
// retain the credit link

// get posted data into local variables
$EmailFrom = "you@youremailaddress.com";
$EmailTo = "you@youremailaddress.com";
$Subject = "This will be in the subject line";

//You need to fix the below items to match your form
$Name = Trim(stripslashes($_POST['Name']));
$emailaddress = Trim(stripslashes($_POST['emailaddress']));
$Comment = Trim(stripslashes($_POST['Comment']));

// validation
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";

// You need to prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "emailaddress: ";
$Body .= $emailaddress;
$Body .= "\n";
$Body .= "Comment: ";
$Body .= $Comment;
$Body .= "\n";

// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

// redirect to success page and an error page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=thankyou.htm\">";
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";


If you wish to practice, then, copy the text below here in between the BODY tags of a regular HTML page. Save it as contact.html. This is just a sample. You will be creating your own form.

<form method="POST" action="contact.php">
<table width="100%" border="0">
<td width="216" class="style17"><div align="right">Name:</div></td>
<td width="374"><input type="text" name="Name"></td>
<td class="style17"><div align="right">email address:</div></td>
<td><input type="text" name="emailaddress"></td>
<td class="style17"><div align="right">Comment:</div></td>
<td><textarea name="Comment" cols="55" rows="5"></textarea></td>
<td><input type="submit" name="submit" value="Submit"></td>