Posts: 256
Location: Auckland, New Zealand
|
Usually this is because REFERER information is blocked by browsers and firewalls (because it's prying on privacy), so there's no guarantee that this variable will be set for the server which is why it's resulting in Undefined.
So either check if it's set similar to how you've done the check for $_SESSION['from'] and if it's not then set a default for it or make it empty/undefined. Is it important that you have this information? If it's only to know that the information came from your server, then why not set variables up that you could check that validates it came from your server.
Cheers,
MC
__________________
#------------------------------ signature---------------------------------------------------------------------------------#
Quote:
|
I am well recognised for what I don't do than what I do. Chores are just one of those things.
|
|