Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. username and password

username and password

Scheduled Pinned Locked Moved Visual Basic
databasehelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saraswathy143
    wrote on last edited by
    #1

    hi i have created a main page with username and password (not a web page), i want to know how am i suppose to save this password and username in the database. so everytime i login, i need to type my password and username to enter the next page.. 1. on the first time i login i dont need a password and username but once i'm login i need to set a password and username so i can use them the next time. is that possible? 2. can i know the coding to validate this pass and username.. pls help!!!

    T 1 Reply Last reply
    0
    • S saraswathy143

      hi i have created a main page with username and password (not a web page), i want to know how am i suppose to save this password and username in the database. so everytime i login, i need to type my password and username to enter the next page.. 1. on the first time i login i dont need a password and username but once i'm login i need to set a password and username so i can use them the next time. is that possible? 2. can i know the coding to validate this pass and username.. pls help!!!

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      1. first check if the username is present in the database if so go to 2.;P if not insert a new record in db with username and password (make username unique value in db otherwise you might have problems) 2. this is depending on wether or not you want to encrypt the password if not you just compare 2 strings (password is saved as a readable string in db) if txtusername.text.tolower.equals(db.username.tolower) then if txtpassword.text.tolower.equals(db.password.tolower) then end if end if if you do want to use encrypted password its a bit more difficult but I have the code somewhere if you need it I'll look for it just let me know hope this helps -- modified at 9:44 Monday 23rd July, 2007

      S 1 Reply Last reply
      0
      • T Tom Deketelaere

        1. first check if the username is present in the database if so go to 2.;P if not insert a new record in db with username and password (make username unique value in db otherwise you might have problems) 2. this is depending on wether or not you want to encrypt the password if not you just compare 2 strings (password is saved as a readable string in db) if txtusername.text.tolower.equals(db.username.tolower) then if txtpassword.text.tolower.equals(db.password.tolower) then end if end if if you do want to use encrypted password its a bit more difficult but I have the code somewhere if you need it I'll look for it just let me know hope this helps -- modified at 9:44 Monday 23rd July, 2007

        S Offline
        S Offline
        saraswathy143
        wrote on last edited by
        #3

        thank you so much that helped a lot

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups