Click to See Complete Forum and Search --> : Mailto with referrer/url


Carlo..
12-10-2002, 08:20 AM
Hello,
i have a simply form mailto script on my page.

My question: Is it possible, when it will be send an email trought my mailto form that i will also receive the Top URL from which it was send the filled out form email?

Important: Not the url from the local file.

I need the top url.
For example:
http://forums.webdeveloper.com/newthread.php?s=&action=newthread&forumid=3

Is this possible to input it in a form mailto?

Its for this: I have 1 mailto form on my page.
But a lot of subleveldomains where are redirected with a 100% frame to the mailto form.

So i will wonder from which Domain the people will use the form mailto.

Taersious
12-18-2002, 01:28 PM
I would suggest performing that process in your script (ASP, PHP, etc). The parameters you are looking for are these:
site = Request.ServerVariables("HTTP_REFERER")
ip = Request.ServerVariables("REMOTE_ADDR")
host = Request.ServerVariables("REMOTE_HOST")
These are of course ASP style.

Good luck!

khalidali63
12-18-2002, 07:47 PM
Yes you can do that using java script

you just have to create a hidden field in your form.and set the value of theat hidden field like this.
<input type="hidden" name="url" value="javascript:window.location">

I have not tested it this way but if it doesn't work like this.then just have to write a function that would set this fields value like this

function setURL(){
var urlvalue = window.location;
document.formName.url.value = urlvalue;
}

This will work.and make sure this function is called on the submit event

Khalid