Reputation: 560
I have a web-page with a list of usernames (this is for PHP based application)... I want to achieve that by clicking over some username to optain a popup window which will open with a password input field and submit button. After Password would be typed, need to press Submit... The result should be that Popup windows will disappear and main page will login by username and password (from pop-up).
Hope I could describe clear my problem. In case of unclear things, please do not hesitate to ask me. I will appreciate any kind of support! Thank you in advance for your support!
Upvotes: 0
Views: 2029
Reputation: 982
Well, there is a more complicated way and a simpler way with some trade-ins.
First the easy solution:
The trade-in is that you'd have to refresh the original page.
Now to more complicated way:
I would go for the easier version because it has better support and is easier to implement.
Upvotes: 3
Reputation: 10469
You could do this a number of ways. The first (and prob easiest) that comes to mind would be a DIV on the page that starts out hidden. When you click on a username you move the div to the appropriate location, display it and collect the input. The DIV has the 'login' button and redirects to all the relevant FORM bits.
Upvotes: 3