Login system 2 layers
<p>I want build login page includes 2 layers: </p>

<ol>
<li><p>php page, login with username and password in database as a
normal login page. Hosted in server A</p></li>
<li><p>when click to submit button in that login page (1st), a pop-up
    window (hosted in server B) will be opened, login at 1st page is
    pending, and user begin authenticate by LDAP at this pop-up, after
    authentication success, pop-up will closed and login process at 1st
    page continue.</p></li>
</ol>

<p>Someone could tell my the way to solve this problem.</p>
