Hi Jon,
I almost wanted to go back to bed for a good sleep, but when I saw your question, and the answers you received, I felt that I got something to share with you.
First of all, you can use a MySQL to create a user table. This table contains username and password. Then, use PHP to connect to this MySQL database, and use the following code on the webpage (named index.php):
<?php
function print_form() {
?>
<CENTER>
<FORM ACTION="index.php" METHOD="POST">
<TABLE WIDTH="257" HEIGHT="100" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR>
<TD WIDTH="257" HEIGHT="75" COLSPAN="2" VALIGN="CENTER" ALIGN="CENTER"><IMG SRC="../logo.gif" BORDER="0"></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="25">User Name
</TD>
<TD WIDTH="157" HEIGHT="25"><INPUT TYPE="text" NAME="user_name">
</TD>
</TR>
<TR VALIGN="CENTER" ALIGN="LEFT">
<TD WIDTH="100" HEIGHT="25">Password
</TD>
<TD WIDTH="157" HEIGHT="25"><INPUT TYPE="password" NAME="password">
</TD>
</TR>
</TABLE>
<INPUT TYPE="submit" NAME="submit" value="Login">
</FORM>
</CENTER>
<?
}
if(isset($submit)):
if(!$db = mysql_connect("localhost","root")):
print("<h1>Can't Connect to the DB!</h1>\n");
else:
mysql_select_db("mydb", $db);
endif;
$sql = "select * from users where user_name = '$user_name'";
$result = mysql_query($sql);
$row_count = mysql_num_rows($result);
if($row_count == 0):
print_form();
?>
<CENTER><h3>Wrong User Name! Try Again</h3></CENTER>
<?
else:
$row = mysql_fetch_array($result);
if($password != $row["user_password"]):
print_form();
?>
<CENTER><h3>Incorrect Password! Try Again</h3></CENTER>
<?
else:
?>
<CENTER><h3>RIGHT Password!</h3></CENTER>
<?
endif;
endif;
else:
print_form();
endif;
?>
If you get this correct, you can used this as a password protecton screen.