make a user and pass for website

computerz

New Member
hey im gona make a website and i would like it to say register user name and pass. when they register them i would like them sent to my email so i can go on and monitro thier account.


how do i do this?
 
you can't do it with html only, but you must use php or asp with a database like access(with asp) or mysql (with php)
 
you can add a small javascript feature which requires a username and password, and if the wrong one is inputted, the script can redirect you to a failed login page but nothing as complex as php.

Here is a good example of what I was trying to explain;

http://www.willmaster.com/blog/cont...ple_Username_Password_Access_Restriction.html

I will quote;

This is not military grade access restriction.

It does, however, provide a measure of protection about equal to having hidden web page file names. In either case, unauthorized access attempts are reduced to guessing file names.
 
Last edited:
That JavaScript solution is just ridiculous.

If you want "registration" on your site, the server should support a server-side language like PHP or ASP, and you'd need a database (typically MySQL for PHP or MS Access for ASP). You could then write it yourself or use something that's freely available.

If you're running the server yourself, you could simply download a LAMP stack (Linux, Apache, MySQL, PHP) or WAMP if you're running Windows.

If you have a hosting package, you probably already have access to a backend database and you can just set up a registration script to use that database to store user names etc.

But, if you just want authentication (a user name and password to access a file or directory), you can set that up with .htaccess files in Apache.
 
Last edited:
Its not as silly as you think, you could store the password/login stuff in a different script file and just include that file in the javascript head. Then when you read the source you wouldnt see the passoword. Anyone smart enough to then go looking for the file linked to with the password info in would be stopped because you changed permissions on it to make it not readable/viewable etc... by anyone who isnt meant to etc...

Of course its still very low grade, but its not quite as rubbish as you are all making out.

dragon
 
Thanks dragon. At the end of the day this forum works on suggestions and ideas. If the solution will not work or it is not good enough then obviously people will use another.
 
encrypt your data online always, otherwise anyone sniffing around for packets and intercept any data transmitted in plain text.
 
lol thnx u guys but remember this aint gona be a huge website.. basicly a website for friends and stuff... so i dun relly care about if sum guy can get the passwords... cuz all my friends dun no anything bout computer so if they steal da passwords it wont matter...
 
lol thnx u guys but remember this aint gona be a huge website.. basicly a website for friends and stuff... so i dun relly care about if sum guy can get the passwords... cuz all my friends dun no anything bout computer so if they steal da passwords it wont matter...

yes until you get a trojan, spyware, malware, keystroke logger, etc on your system from someone easily (or a progam) accessing your system and then you have a security breach on your system.

Do you do any online bill pay, banking, or shopping?
 
Back
Top