For The HTML Experts...

chazdraves

Golden Member
May 10, 2002
1,122
0
0
I'm designing a website for a friend of my father's and he would like to include a "members only" section within the page. I've never had need to design a page with usernames and passwords, hence I have no idea how one goes about setting up such a site. If anyone can give me a few code examples and tips, I'd be much obliged! Thanks!

- Chaz
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
Can't be done with HTML alone. Needs a database of some sort to store/retrieve the data. What does the webserver support in terms of scripts/languages?
 

chazdraves

Golden Member
May 10, 2002
1,122
0
0
The server supports whatever I want. I figured it wouldn't be HTML. How do I go about making it work?

- Chaz
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
............

Ok, since we no nothing about your programming skills, what kind of server(software) it's on, how secure it needs to be, etc, no we cannot elaborate.

Please post all relevant info.
 

chazdraves

Golden Member
May 10, 2002
1,122
0
0
I've been doing HTML for a couple years, but I have no other programming experience other than Q BASIC. I'm running it on a server provided by doteasy.com, and they allow the option to support whatever you want... for a price. Security is big, but not if it requires a great deal of money to make happen. Again, I know HTML well, but I have no experience in any other languages other than Q BASIC. Does anyone know of an online tutorial? Thanks!

- Chaz
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Is your server apache or IIS? .htaccess is free and is the easiest way to just pop up a dialog box asking for user/pass. It stores the name/pass in a database on your server. However you will not get a pretty looking login with this, nor is it integrated into a website. It will pop up a dialog box asking for user/pass. I use this personally, and I like it.
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Originally posted by: chazdraves
Many thanks to both of you. That's exactly what I was looking for!

- Chaz

good luck, if you need help with .htaccess, drop me a PM ill be happy to help.
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
Yeah .htaccess is probably the easiest way to go. And even easier is many hosting services give you the ability to password protect directories automatically through the control panel. You don't even have to learn how to use .htaccess that way; just protect a directory through the control panel and give all members the same user/pass information. But that's too simplistic for what you want if you need everyone with different user/pass.