Forum Moderators: coopster
Im fairly new to php - having only used it in my lastest 2 sites.
Is it possible to grab the refering url and insert it into the session array?
i.e. if a user comes from bobswebsite.com, bobswebsite will be added into the session with a view to write it to a database...
Many thanks in advance for any advise you can give me.
Cheers
Twixly is on track, but I'm guessing the $_SERVER [php.net] variable you want is
HTTP_REFERER(misspelling is correct, a carryover from its inception). However, that particular variable may not always be present and cannot be trusted.