This is what i have so far then hahaha, I really dont have any idea how to do this huh!!! ... I do know it's a mess and doesn't work.
<html>
<?php
if (!$_POST["email"]) { echo "Error"; exit; }
if (!$_POST["yourname"]) { echo "Error"; exit; }
if (!$_POST["youremail"]) { echo "Error"; exit; }
// Validate / Parse
// ** You need to valid the submitted data here **
// Send Email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .="From: ".$_POST["yourname"]." <".$_POST["youremail"].">\r\n";
$headers .="Date: ".date("d/m/Y H:i")."\r\n";
if(!mail($_POST["email"],"Email Title","Email Message", $headers)) { echo "Error"; exit; }
else { echo "Successful"; }
?>
<head>
<title>Recommend to a friend.</title>
<link rel="stylesheet" href="template_css.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head>
<body class="contentpane">
<script language="javascript" type="text/javascript">
</script>
<body>
<form action="recommend2.php" name="frontendForm" method="POST" onSubmit="return submitbutton();">
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2">Tell a friend</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="130">Your friends e-mail:</td>
<td><input type="text" name="email" class="inputbox" size="25"></td>
</tr>
<tr>
<td height="27">Your name:</td>
<td><input type="text" name="yourname" class="inputbox" size="25"></td>
</tr>
<tr>
<td>Your e-mail:</td>
<td><input type="text" name="youremail" class="inputbox" size="25"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="submit" class="button" value="Send e-mail">
<input type="button" name="cancel" value="Cancel" class="button" onClick="window.close();"></td>
</tr>
</table>
<input type="hidden" name="ID" value="">
</form>
</body>
</html>