Adblock breaks this site

Can anyone help?

Discussion in 'Programming General' started by gigabyt3r, Feb 22, 2008.

  1. gigabyt3r

    gigabyt3r Member
    Banned

    Joined:
    Jul 31, 2007
    Posts:
    64
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    Ok im trying to make a login system, i spent ages on what i have so far even though its only 4kb big LOL.


    Anyway when i register a username and try to login, it says invalid even though i just registered it. Also i want more than 1 user to be able to register but i have no idea how to it (when u register it just declares the variables 'username' & 'password' accordingly). So if someone could help with that as well that would be really appreciated..


    If you look at the source you will understand what i mean:D

    I hope someone can help me, thx in advance


    http://rapidshare.com/files/93869293/login_system.rar
     
  2. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    Can anyone help?

    Ok, it's against the rules to post Source, so you might want to remove that link. I'd help but I can't post source either, so just wait for a Mod or a VB Programmer to come in a help. Sorry I couldn't be anymore help. :(
     
  3. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    EDIT: Urg, horrible system is horrible.
    Give me a bit and i'll show ya how to make a REAL login system.
     
  4. gigabyt3r

    gigabyt3r Member
    Banned

    Joined:
    Jul 31, 2007
    Posts:
    64
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    Wow thanks so much Jazz, i know it really is an awful system :D
     
  5. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Can anyone help?

    I whipped up a semi-basic login system for you. (its attached)
    Jazz's will no doubt be more "secure" then what i just posted. So you might wanna wait until he posts also.
     

    Attached Files:

  6. gigabyt3r

    gigabyt3r Member
    Banned

    Joined:
    Jul 31, 2007
    Posts:
    64
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    Thx Covey it works great, although when i look at the code i get abit confused :p , although you added comments which helped me understand it a little more
     
  7. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Can anyone help?

    Post the parts of the code that confuse you and i will try to explain it further.
     
  8. gigabyt3r

    gigabyt3r Member
    Banned

    Joined:
    Jul 31, 2007
    Posts:
    64
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

  9. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    i've turned the simple code I had into a major project, i'll release it later on with a small sample
     
  10. heidi

    heidi Guest

    Referrals:
    0
    Can anyone help?

  11. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Can anyone help?

    ffs this site is being shit. I can't seem to post my reply (Everytime i paste something into the reply box the reply doesn't go through, but i can type normally and the reply works)
    I've saved the post to a .txt file and i'll try again tommorrow.
     
  12. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    Are you serious, i never knew it was against the rules to post :eek:
     
  13. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

  14. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    ok, thanx!
    Seems a little over the top tho wouldnt you think, and how do i end up with a VB Rank :p
     
  15. heidi

    heidi Guest

    Referrals:
    0
    Can anyone help?

  16. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    Why does she/he have to add you, the problem is pretty much resolved, and covey is going to explain to her/him a little more about the code he gave em'
     
  17. gigabyt3r

    gigabyt3r Member
    Banned

    Joined:
    Jul 31, 2007
    Posts:
    64
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    added

    edit: WTF its someone from china trying to sell me rs gold
     
  18. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    Can anyone help?

    Lawl, someone just lost to a spammer. Funny isn't it, how thats the only thing "heidi" has posted, http://sythe.org/search.php?searchid=881333
    but no description of what it wants to talk about.... LARN 2 INTERBUTTS
     
  19. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Can anyone help?

    "SaveSetting" is the inbuilt function to save a string to the registry.
    The "Trim()" function trims the space characters from the left and right side of the given string.
    The "Len()" function counts how many characters are in the given string.
    The peice of code that you posted above that you said "makes absolutely no sense to you", is a peice of code that wasn't written by me (as i said in my project code). But it basically decrypts the given string.

    PS.
    Where i use:
    Code:
    If Len(Trim(txtUsername.Text)) = 0 Or Len(Trim(txtPassword.Text)) = 0 Then
    is the pretty much the same as doing:
    Code:
    If txtUsername.Text = "" or txtPassword.Text = "" Then
    But using "Len()" uses less resources on the computer and is also faster.
     
< [Tut]Instr | Help With Java function >


 
 
Adblock breaks this site