|
Yes, thanks, I know this is very true, and I do have plans to change this, but I still have the same problem. I guess I didn't phrase it correctly, so let me try to tell you exactly what I'm doing.
Depending on some circumstances, I want to initiate a popup window when they login, and only when they login. The problem is, they login from any page on the site from the sidebar. I tried using javascript in the login file itself, but this causes an error since I am using the 'header' function in PHP. My next idea was to use HTTP_REFERRER and check which file had been the referrer so that if it was 'login.php', the window would initiate, but as you said it is insecure and not the best approach. Also, since I use the 'header' function, 'login.php' never actually loads, and the variable returns the previous page. I guess overall 'header.php' is my main problem. Does anyone know another way to do this?
|