English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am making a website. I want the content to be such that a person has to register up first. Then he can login with his username and password. Also I need to create 3 levels of accounts- The root (That is me), The moderators and the users. Can you please help me with this?

2006-12-22 01:31:17 · 5 answers · asked by Gabriel Trex 1 in Computers & Internet Programming & Design

5 answers

What language is the site being developed in? By language I mean server-side langauge (like Coldfusion, ASP, PHP, ect).

Will the user be registering on the site? If so, first thing you need is a registration form. Then you "save" the user's info in a database (thats where the server-side language comes in).

After you save the info, the user can use the login page to sign into the site. To verify the info is correct you query the dB.

Its quiet easy to create this feature.

I use Coldfusion as my language, and in that you verify the info as:


SELECT User_ID, Username, Password
From Users
WHERE Username = '#FORM.Username#' and Password = '#FORM.Password#'









This is MUCH simplfied way of doign this, you need have error-handeling traps and other code to make the process seamless.

Also, DO NOT USE JAVASCRIPT BASED LOGIN FEATURE. This provides NO security. All the user needs to do is View -> Source to get the username/password combo.

Contact me if you have any questions...my site link below

2006-12-22 02:58:37 · answer #1 · answered by The First 3 · 1 0

ok,
first create a page which user hast to register it as a "user" . There will not be a moderators as u are the moderators urself. and then if it is register if the user logins it will check database that he has register it or not.

2006-12-22 02:36:29 · answer #2 · answered by Sonu G 5 · 0 0

Go to site settings (in the store control panel), then go to Customer Access. In that section you may enable passwords for viewing the site.

2016-05-23 15:29:54 · answer #3 · answered by ? 4 · 0 0

I suggest using a pre-made script for that, you can find a bunch, both commercial and free at:

http://www.hotscripts.com

2006-12-22 01:57:43 · answer #4 · answered by Anonymous · 0 0

http://www.hypergurl.com/generators/passwordgenerator.html

2006-12-22 01:39:29 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers