jackoats
12-18-2006, 03:54 PM
I am designing a (PHP/MySQL) site that requires secure login. Currently I have a link which opens a pop up login window, (inside <a href tag.. onClick= "window.open('login.php', 'content_win', 'scrollbars=yes, width=450,height=400') etc...) which the user enters details and then goes to a confirmation page, saying they are logged in and allowing them to change their details, log-out or close the window.
All this works fine, but I would like to employ a pop up window so that if the user is not logged in, the page will not load, but opens a log-in window which must be filled in before the user can see the page. Is this possible using java "onload.."?
Any suggestions?
All this works fine, but I would like to employ a pop up window so that if the user is not logged in, the page will not load, but opens a log-in window which must be filled in before the user can see the page. Is this possible using java "onload.."?
Any suggestions?