Trying to use $HTTP_REFERER and it seems no matter what form I use it in it still doesn't work. From what I understand with global registers off you cannot use it in this form. So I used a different format. Could someone tell me what may work for this? Thanks
echo "<form action=\"$PHP_SELF\" method=\"post\">";
$fullurl = $_SERVER['HTTP_REFERRER'];
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>";