Page 1 of 1
How to popup a window for user name and password in PHP?
Posted: Wed Jun 09, 2004 9:20 am
by ljCharlie
I want to create a popup window that ask for User Name and Password in PHP cod. In addition, once the user enter the user name and password to the popup window, how do I capture that information and store it to a cookie?
Any help is grateful!
ljCharlie
Posted: Wed Jun 09, 2004 9:26 am
by JayBird
Pop-up widows are a Javascript issue.
Take a look at this in the manual -
http://se.php.net/manual/en/function.setcookie.php
Mark
Posted: Wed Jun 09, 2004 10:27 am
by Saethyr
or you can use .htpasswd to get the generic login window you get on alot of sites.
Posted: Wed Jun 09, 2004 11:10 am
by ljCharlie
I see. So PHP can create popup window then? If that is true, can PHP capture the information from a javascript popup window and store in a cookie? Or is this also done in javascript?
Thank you,
ljCharlie
Posted: Wed Jun 09, 2004 11:48 am
by magicrobotmonkey
you could easily popup a window in javascript with a form and POST the data to a php script
Posted: Wed Jun 09, 2004 11:51 am
by anotherJean
ljCharlie wrote:I see. So PHP can create popup window then? If that is true, can PHP capture the information from a javascript popup window and store in a cookie? Or is this also done in javascript?
Thank you,
ljCharlie
of course PHP can store info in a cookie. this is not related to the form of the window.
Posted: Wed Jun 09, 2004 11:57 am
by zenabi
Posted: Wed Jun 09, 2004 12:13 pm
by ljCharlie
Thank you all your help.
ljCharlie