How can I make a popup form?
I want to password protect my page which I am doing using LDAP bind authentication. That whole process and script is fine. Now I have this form which submits to that script and that script checks whether the user has authentication or not, if they don't it kicks them out. 

What I am trying to do here is this. http://jsfiddle.net/s5JyR/ that form I have there, I would like to make that a popup login instead so as soon as a user goes to the url of the site they get a blank page with a POPUP screen asking for the login. How can I do make that popup? if the user clicks cancel it should display Error. Access denied. Or if the user inputs the wrong login credentials display that same error message. The error messages don't need to be a popup, they can be displayed on a different blank page. All the forms I have looked around Google have a popup from a button which isn't what I want..

I am trying to make something like this: 

![enter image description here][1]


  [1]: http://i.stack.imgur.com/I1TzJ.png
How can I make a popup form?
===

I want to password protect my page which I am doing using LDAP bind authentication. That whole process and script is fine. Now I have this form which submits to that script and that script checks whether the user has authentication or not, if they don't it kicks them out. 

What I am trying to do here is this. http://jsfiddle.net/s5JyR/ that form I have there, I would like to make that a popup login instead so as soon as a user goes to the url of the site they get a blank page with a POPUP screen asking for the login. How can I do make that popup? if the user clicks cancel it should display Error. Access denied. Or if the user inputs the wrong login credentials display that same error message. The error messages don't need to be a popup, they can be displayed on a different blank page. All the forms I have looked around Google have a popup from a button which isn't what I want..

I am trying to make something like this: 

![enter image description here][1]


  [1]: http://i.stack.imgur.com/I1TzJ.png