|
Hi all,
I was going to write my send to a friend form in PHP but the website I'm doing this for is being programmed in ASP.
Here's the situation...
I have a newsletter with an article. There is a "send to a friend" link on there that is directing the reader to a page with a form on it to send the URL they were just reading.
I'm writing the form page in XHTML. It has the basic fields plus the following hidden field...
<input type="hidden" name="URL" value="<%= Request.ServerVariables('HTTP_REFERER')%>" />
Now, I have to use single quotes in the value field or else I'll get an error on the HTML side.
After the reader puts in their friend's email, their own and a short message, I then have a "submit" button that calls send.asp that creates the email.
objCDO.Body = strFrom & " has recommended that you check out " _
& "this article in Atlas Plugged." _
& vbCrLf & VbCrLf & Request.Form("URL") _
& vbCrLf & VbCrLf & Request.Form("Message")
When I receive the email (I'm testing on me), what I'm getting is... the <%= Request.ServerVariables('HTTP_REFERER')%> in the message.
HELP!!! What am I doing wrong? I heard that some browsers don't support the ASP Http_referer. I tried this with IE6 and Mozilla and get the same results.
Thanks
Donna
|