I intended to write a popup login dialog which shall appear when a user access any page that requires membership. Upon successful authentification, the user will resume the page where the popup was called.
I wrote a popup using JavaScript and found hard time in passing and letting PHP continue the processing after the information collection.
Here are the details...
common.inc is included in all files; contains code to do popup via JavaScript windows.showModalDialog("login.php") method.
login.php collects User ID and Password; has an event handler onClick at the "submit" button to toggle a JavaScript function Logon(). In this function, I wish to do authentification using PHP, then do a window.close() to close the popup and location.href() to reload the page upon successfuy login.
Any idea? Thanks.