Somewhat confused my my variables aren't passing from the form to the mail portion of the script. I get blank variables with the submission of the form. Could someone tell me why they aren't passing? Here's what the page looks like after I submit the form "An e-mail with the link was sent to at from at , now also your friend will know about the link", ..all form variables missing.
<?
if(($_POST['submit'])){
mail("$email", "Your website","Hi $name !, $sendername at $senderemail wanted you to read this article at $link.", "from: $mailheaders\"$sendername\" $senderemail\n");
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>";
} else {
echo "<form action=\"$PHP_SELF\" method=\"post\">";
$fullurl = "$HTTP_REFERER";
echo "$fullurl<br>";
echo "<input type=hidden name=link value=$fullurl>";
echo "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\" name=\"submit\" value=\"Go!\"><input type=\"reset\" value=\"reset\">
</form>";
} ?>