Share via


Code to Retrieve Login Credentials

This example shows how to retrieve the user ID and password submitted on an HTML form using either the Get method or the Post method.

  • Retrieve the credentials using the Get method.

    Dim sUserID, sPassword
    If Request.QueryString("realSubmit") = "fromButton" Then
        sUserID = Request.QueryString("txtUserName")
        sPassword = Request.QueryString("txtPassword")
    End If
    
  • Retrieve the credentials using the Post method.

    Dim sUserID, sPassword
    If Request.Form("realSubmit") = "fromButton" Then
        sUserID = Request.Form("txtUserName")
        sPassword = Request.Form("txtPassword")
    End If
    

Copyright © 2005 Microsoft Corporation.
All rights reserved.