Hi,
Has anyone ever had this problem? I have a formmail script that uses the $HTTP_REFERER variable to check that the page where the user filled out the form is of the allowed referers. If it is not, then it gives an error message saying that they were coming from an unauthorized domain (I did not write this script, it was inherited, but I think it is a general formmail script anyways).
Well there is 1 group of people (my clients, actually) who, when they fill out the form and submit it, it gives them the error message. So, I had it email me the environment variables so I could see what 'unauthorized domain' they were coming from - I used $_SERVER["HTTP_REFERER"], $HTTP_REFERER, and get_env("HTTP_REFERER").
When I fill out the form it emails me my environment variables fine - but when THEY do it, it sends an empty string for everything except ip address and browser. It gives empty string for referer.
They are using Windows IE, but if I test it on a Windows machine using IE, I do NOT get the error!
It is sooo hard to fix because I can not reproduce the error for the life of me. It is only on their end.
Has anyone ever had this problem before? And if so, how did you fix it?
Thank so much,
Heather