Computing.Net > Forums > Web Development > Password Entry

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Password Entry

Reply to Message Icon

Name: Bungle
Date: March 17, 2005 at 07:30:36 Pacific
OS: XP
CPU/Ram: Unknown
Comment:

Hello

On the site "Driverguide" you have to enter a password (the same for everybody)which will then let you in to the site. I would like to have this option on my site and let certain people know the password - I have looked around the net but can't find how to do it!

Thanks in advance!



Sponsored Link
Ads by Google

Response Number 1
Name: fambi
Date: March 17, 2005 at 13:08:45 Pacific
Reply:

If you are using only one password (not recommended) it is easy.

You store the password somewhere using some veriable to describe it (e.g. $real_password)

Then you have a form where the user submits their password.

THen you have an if statement attached to the password protected sections of your site which says

if($users_password == $real_password)
{
show the private stuff
}
else
{
redirect them to the 'mind ur own business page
}

If you want each user to have their own password you'll have to set up a table in a database etc.

Good luck!

If you're interested in SMS, visit section about sms news.


0

Response Number 2
Name: Bungle
Date: March 18, 2005 at 01:42:57 Pacific
Reply:

LOL - I'll get a mind your own business page set up first then ;o)

Thanks very much Fambi :o)

Regards

Paul


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Password Entry

Internet Explorer www.computing.net/answers/webdevel/internet-explorer/980.html

htaccess 1 only www.computing.net/answers/webdevel/htaccess-1-only/586.html

web page password ? www.computing.net/answers/webdevel/web-page-password-/153.html