I'm a php newbie, so forgive my ignorance!
I'm designing a site with an EMAIL THIS PAGE option - i.e., you click EMAIL THIS PAGE, fill out a quick form, and the form processor sends out an email with the URL of the page just prior to the form.
I'm almost there, but I can't figure out exactly how to use "HTTP_REFERER" to 1) get the URL of the page linking to the form, and 2) pass the URL through the form to the form processing script so it can be e-mailed.
Here's a little code I thought might do the trick: (no such luck)
(FROM THE FORM PAGE)
<input type="hidden" name="url" value="$_SERVER['HTTP_REFERER']">
(IN THE FORM PROCESSING SCRIPT)
$url = $_POST['url']
Anyone know what I'm missing??
Thanks in advance,
Ed