34 users online (1 members and 33 guests)  


  Results 1 to 2 of 2

Related

  1. auto increment session variable name?    Forum: PHP Forum
    Replies: 1
  2. Login Page    Forum: HTML Forum
    Replies: 1
  3. creating a login page    Forum: CGI Perl Forum
    Replies: 0
  4. Cookies Session Help    Forum: Website Scripts Forum
    Replies: 8
  1. #1
    leochan861's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2007
    Posts
    6

    Login Page with session

    I have made a login page
    Code:
    <%@ Page Language="VB" %><script runat="server">
    Sub Page_Load()
    If Page.IsPostback
    Session("Name")= txtName.Text
    Session("Password")= txtPassword.Text
    End If
    End Sub
    </script>
    <html><head> <title>Login</title></head><body> <br/>
    <form runat="server">
    Please enter your name:
    <asp:TextBox id="txtName" runat="server"></asp:textbox>
    <br/>
    Please enter your password:
    <asp:TextBox id="txtPassword" type="password" runat="server"></asp:textbox>
    <br/>
    <input type="submit" value="Login" />
    </b><p>
    </form></body></html>
    But how can I connect to the Access to validate the user name and password?
    And also how can I include the session method?

  2. #2
    David Albert's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    9

    Exclamation Re: Login Page with session

    Session("Name")= txtName.Text
    Session("Password")= txtPassword.Text
    if(txtName == 'john' & txtPassword == 'john')
    {
    write your code here.
    }
    the name john and password john are just given static values you can also give values from database.
    thanks



Tags for this Thread