Yes that is what happends but I want the referrer to be the http://www.site.com, not the http://www.domain.com which is where the script is called from. Basically this is all thats left for me to finnish a access logging script. Which will store the referrers to a page using an image tag.