Log-in form

They have: 37 posts

Joined: Jun 2006

how can i able my visitors to sign-up first before they can enter a certain page of my website? you know like in
a forum..you should sign up first for an account and then your in! pls. someone reply to this a.s.a.p i will appreciate it much

Have a Free Hosted Website? Join us to exchange links, feature your website and improve your traffic! visit http://fhwc.50webs.com

Busy's picture

He has: 6,151 posts

Joined: May 2001

If you plan to allow different names/passwords you'll need a database to keep records of these, otherwise you can just use javascript but the username and password would be visible in the source code

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Also, a lot of web host control panels will let you set up directory-level protection, with username(s) and password(s). You might poke around in your control panel and see if that's possible.

The biggest disadvantage is that (as far as I know), with that method, there's no way later to see who's signed on. All it does is allow access to everything in that folder.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.