Go Back   Computer Forums > Welcome To Computer Forums .org > Social Lounge | Off Topic
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 09-01-2006, 08:55 PM   #1
Fully Optimized
 
^Mike^'s Avatar
 
Join Date: Oct 2005
Posts: 2,958
Send a message via ICQ to ^Mike^ Send a message via AIM to ^Mike^ Send a message via MSN to ^Mike^ Send a message via Yahoo to ^Mike^
Default How do i create password protected web page???

I'm finishing up a website i created for a local organization (i'm not getting paid) and the last thing i need to do is make a "members only" page with a login and all the members would have the same username and password and they would just need to type it in the login and they are taken to the members only page. Anyone know how i could create this? Or are there any message programs or something that would work?

don't think to hard guys because i may have found something that would work but i still need some input
__________________

^Mike^ is offline   Reply With Quote
Old 09-01-2006, 09:00 PM   #2
Daemon Poster
 
Chimaera's Avatar
 
Join Date: Dec 2005
Posts: 585
Default Re: How do i create password protected web page???

http://www.w3schools.com/tags/tryit...._inputpassword

Maybe this sort of thing?
__________________

__________________
i5 750@3.8GHz [24/7] \\ 4GB G.Skill Ripjaws \\ 640GB WD Black + External Storage \\ HD5770 \\ Win7 x64 \\all housed in a neat little P180 mini.
Chimaera is offline   Reply With Quote
Old 09-01-2006, 09:36 PM   #3
Fully Optimized
 
^Mike^'s Avatar
 
Join Date: Oct 2005
Posts: 2,958
Send a message via ICQ to ^Mike^ Send a message via AIM to ^Mike^ Send a message via MSN to ^Mike^ Send a message via Yahoo to ^Mike^
Default Re: How do i create password protected web page???

yeah thanks i'll try that
^Mike^ is offline   Reply With Quote
Old 09-02-2006, 09:35 AM   #4
Fully Optimized
 
UK31337's Avatar
 
Join Date: Feb 2005
Posts: 2,776
Default Re: How do i create password protected web page???

You could either use a .htaccess file (Google for a tutorial), or a MySQL database with the usernames and passwords.

That way, you could allow people to register their own usernames and passwords, instead of everybody sharing the same login credentials.
UK31337 is offline   Reply With Quote
Old 09-06-2006, 01:45 AM   #5
Baseband Member
 
Join Date: Jul 2006
Posts: 75
Send a message via AIM to hypetech Send a message via MSN to hypetech Send a message via Yahoo to hypetech
Default Re: How do i create password protected web page???

.htaccess is only an option if the site is hosted on an Apache server. Is the site being hosted with Apache or IIS?
__________________
http://www.ubermafia.com -- Welcome to the Ubermafia

Web hosting -- http://www.edthosting.com
hypetech is offline   Reply With Quote
Old 09-06-2006, 03:15 AM   #6
BSOD
 
Join Date: Aug 2006
Posts: 39
Default Re: How do i create password protected web page???

if it supports php.....

Code:
<?php

$MyPassword = 'password';
if (isset($_POST['Submit']) && $_POST['Password']==$MyPassword)
     {
          // show page
} else {
echo 'invalid password';
}
?>
<form action="<?php $PHP_SELF; ?>" method="post">
password:
<input type="text" name="Password">
<br>
<input type="submit" name="Submit" value="Submit">
</form>
__________________

pcfan734 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 09:58 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0