Send Link PHP Code Problem

Ok, A client wants a Send link section on his website. heres my code.

Form:


<form action="refer.php" method="post">
<?php $fullurl = "{$HTTP_REFERER}";
 echo "$fullurl<br> " ;
 echo"<input type=hidden name=link value=$fullurl>";
?>
Friend E-mail: <input type="text" name="email"><br>
Friend Name: <input type="text" name="name"><br>
Your Name: <input type="text" name="sendername"><br>
Your E-mail: <input type="text" name="senderemail"><br>
<input type="submit" value="Go!"> <input type="reset" value="reset">
</form>

Heres my processing page:


<?php
mail("$email", "Your website","Hi $name !, $sendername at $senderemail wanted you to take a look at this link: $link.", "from: $mailheaders\"$sendername\" $senderemail
");
echo "<div align=\"center\"><table width=\"96%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" ";
echo "style=\"font-size:11pt;font-color:black;\">";
echo "<tr height=\"40\" align=center><td><p>&nbsp;</p></td></tr>";

echo "<tr><td >An e-mail  with the link was sent to  <font color=#ED1820 >$name</font> at <a href=\"mailto:$email\">$email</a> from <font color=#ED1820 >$sendername</font> at <a href=\"mailto:$senderemail\">$senderemail</a>, now also  <font color=#ED1820 >$name</font> your friend ";
echo "  will know about the link <a href=$link target=_blank>$link </a></td></tr>";
echo "</table></div>";
?>

Thanks!

^^ Anybody

Maybe you’ll have better luck if you describe what you’re trying to do and what symptoms you get when it goes wrong…

Im trying to have a send this link to a friend form. When I put all the info in and emails and hit send. I never get the emails.

$_SERVER[‘HTTP_REFERER’];

<?php
mail($email, “Your website”,“Hi $name !, $sendername at $senderemail wanted you to take a look at this link: $link.”, “from: $mailheaders”$sendername" $senderemail
");
echo "<div align=“center”><table width=“96%” border=“0” cellspacing=“0” cellpadding=“0” ";
echo “style=“font-size:11pt;font-color:black;”>”;
echo “<tr height=“40” align=center><td><p> </p></td></tr>”;

echo "<tr><td >An e-mail with the link was sent to <font color=#ED1820 >$name</font> at <a href=“mailto:$email”>$email</a> from <font color=#ED1820 >$sendername</font> at <a href=“mailto:$senderemail”>$senderemail</a>, now also <font color=#ED1820 >$name</font> your friend “;
echo " will know about the link <a href=$link target=_blank>$link </a></td></tr>”;
echo “</table></div>”;
?>

Try using $email not in quotes…