It's rather simple. Have the "e-mail this page" button send the url of the page. a link like "email.php?url=$_SERVER['PHP_SELF']". Then email.php would look something like this (hasn't been tested):
<?
echo "<html><body>";
if (!array_key_exists("send",$_POST))
{
echo "<form action=\"{$_SERVER['PHP_SELF']}\" method=POST>";
echo "Friend's e-mail address: <input type=text name=email><br />";
echo "Friend's name: <input type=text name=name><br />";
echo "Your e-mail address: <input type=text name=your_email><br />";
echo "Your name: <input type=text name=your_name><br />";
// Hidden variables that need to be sent
echo "<input type=hidden name=url value=$url>";
echo "<input type=hidden name=send value=\"true\">";
echo "<input type=submit value=\"Send Link\">";
echo "</form>";
}
else
{
// Message to send
$message = "Dear $name,\n\n$your_name has sent you a link to the following page:\n\n<a href=\"http://www.yoursite.com$url\">$url</a>";
// Sends the message to the friend
if (mail("$name","A link from $your_name","$message","From: $your_email"))
{
echo "Link successfully sent";
}
else
{
echo "Error, please click back on your browser";
}
}
echo "</body></html>";
?>
This should be a good place to start.