PDA

View Full Version : ASP form to email



JayW
11-01-2005, 07:58 PM
Hi all

Please would someone assist me with this.

I have a small contact form which is linked off 100+ pages on a site. I need the form to collect the page url that the contact from comes from when submitted. I can create a seperate html form with a pre-defined hidden input field to send the page url or title, but this could take forever.

I need some added bit of script or a field in the form that tells the form to pass the URL or Title to the ASP where I can create a field in the sendmail script.

Thanks so much

chuck59
11-12-2005, 05:32 PM
Request.ServerVariables("HTTP_REFERER") holds the URL, from where your current page is called. So, use this variable where ever you want it to be.