> > Won't necessarily work if there's proxies and stuff... I'd like to > > know the answer to this also...
Very very true. Don't just use cgi.server_name! > > > I am having a brain fuzzola.. > > > > > > Whats the CF to get the current sites URL? i.e. I need > to get the > > > www.foo.com from http://www.foo.com/index.cfm?foo=1&fubar=2 AFAIK this isn't actually very easy to achieve. One way around this is to use the HTTP_REFERER (spelling is awful in the US) so long as you KNOW that the link to the page came from the same site. However, I suspect that this is not the case as you almost certainly wouldn't need this otherwise. If it's possible to use client side info, then get the info with Javascript. The reason being that if you need the user to click on something, or send them to another page, then it's a client-side interaction. If (and this is possible) you want to send the user an email with a clickable link in it, then you can send them any link you want that will refer them to where they expect to go (as opposed to the site you think it should go to). Long way round and may not be too useful! Paul -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
