Hello, i've been clicked around on your forum and found incredible works from people allover the world, incredible.. I hope you can help me with my project..
I have created a just a simple "Create" form, that creates .txt files into the right folder where i want it, then my question is.. how can i make a login form for it?
And my second question, How can i get it to get "public" so people can
connect to the same server, is it Winsock i'll be using or Mysql??
I just want a simple login system to my program.
So the easiest way will be the best in this case.
Hope you can give me a answer, thanks..
here's the code i use.
------------------------------------------------
Private Sub Command1_Click()
If Len(Dir$(App.Path & Text1.Text & ".txt")) = False Then
Open App.Path & Text1.Text & ".txt" For Output As #1
1.) If you want people to be able to login over the internet (or network), you will need a server. The server can be a VB program on your computer, or a database on your website. The first option is a lot easier using Winsock.
2.) Do you want to use a database (like MS Access/MySQL) or a .txt file to store accounts? A lot of people here will recommend a database, but a .txt file can work also. How many people do you expect to login and use your program?
3.) You will eventually (once you get things working) want some security so people can't view passwords just by opening the .txt file. You will want to use some sort of encryption to make things a little more secure.
1.) If you want people to be able to login over the internet (or network), you will need a server. The server can be a VB program on your computer, or a database on your website. The first option is a lot easier using Winsock.
-Ok Winsock it'll be!
2.) Do you want to use a database (like MS Access/MySQL) or a .txt file to store accounts? A lot of people here will recommend a database, but a .txt file can work also. How many people do you expect to login and use your program?
-I would like to use the easiest way, which would be the .txt files
And how many people i except.. well the program hopefully, will get as much people as it can take.. but i mean 1KB per account wont store that much on the winsock ?
3.) You will eventually (once you get things working) want some security so people can't view passwords just by opening the .txt file. You will want to use some sort of encryption to make things a little more secure.
-Yeah encryption would be very nice, you know how to get that on a .txt file?
---
Now if you have a answer on how to make a login form, that's my highest prio at the moment..
The security aint that so much important for me, well ofcourse i want higher than rightclick on the program and change password (Just example)
But i dont want the fool-proof program, i jsut want some kinda security atleast..
well i went trough a couple of winsock programs people made here, but i cant figure out how to make it in my case, a login case..
Appreciate all the help!
1.) If you want people to be able to login over the internet (or network), you will need a server. The server can be a VB program on your computer, or a database on your website. The first option is a lot easier using Winsock.
-Ok Winsock it'll be!
2.) Do you want to use a database (like MS Access/MySQL) or a .txt file to store accounts? A lot of people here will recommend a database, but a .txt file can work also. How many people do you expect to login and use your program?
-I would like to use the easiest way, which would be the .txt files
And how many people i except.. well the program hopefully, will get as much people as it can take.. but i mean 1KB per account wont store that much on the winsock ?
3.) You will eventually (once you get things working) want some security so people can't view passwords just by opening the .txt file. You will want to use some sort of encryption to make things a little more secure.
-Yeah encryption would be very nice, you know how to get that on a .txt file?
---
Now if you have a answer on how to make a login form, that's my highest prio at the moment..
The security aint that so much important for me, well ofcourse i want higher than rightclick on the program and change password (Just example)
But i dont want the fool-proof program, i jsut want some kinda security atleast..
well i went trough a couple of winsock programs people made here, but i cant figure out how to make it in my case, a login case..
Appreciate all the help!
Ok, I'll write up an example and upload it in a bit.
First, run the server, and add some accounts. Then open the client, leave IP as it is, and try to login.
The code may seem overcomplicated (there are so many very, very, easy ways to do this) but this is the best way in my opinion without using an actual database.
It should still run fast even if you have hundreds, or thousands of users, and is extensible and can be modified easily without having to change much code.
DigiRev, Thank you so much for your time..
I'm soon about to look at the zip you uploaded, many thanks!
Even if it's a complicated i got very easy learning things i like to do, now.. i'm not saying that i'll understand the whole cake.. but i'll look up the commands and why and what they are doing... Many thanks!