faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

I want to know how to make a page accessible only by a password: url/page.htm?pass=PASSWORD etc

Feb 22nd, 2007 15:17
Articles Hosting, General Goldphish, John Jones,


Something like:
<?php
$password=$_GET[password];
if ($password == "thepassword") 
{ 
echo "Password good"; 
/* The rest of the page here */
}
else
{
echo "Bad Password, try again";
}
?>
====
gmarketing.com/articles/read/171/Making_Your_Web_Page_Accessible.html
i hope that helps.
http://americanahost.com
http://www.qwesz.com