How pick a username from a dynamic list, enter password and pass username as a parame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • llastein
    New Member
    • Apr 2010
    • 1

    How pick a username from a dynamic list, enter password and pass username as a parame

    Want to pass username selected from a dynamic list, after entering password. That is opening a page with the parameter username.,
    Have a script to pick the right username but want to enter password before opening the page loyniord:,

    Code:
    <script type="text/javascript">
    function getID(f)   {   var ID; 
    			 ID = f.bla.options[f.bla.selectedIndex].value; location.replace( 'loyniord.php?heiti='+ ID );}
    </script>
    Last edited by Dormilich; Apr 30 '10, 10:25 AM. Reason: Please use [code] tags when posting code
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You could prompt for the password and make a quick check on the server-side (using Ajax). If the password is correct for the user, then open the page with the username parameter.

    Comment

    Working...