hi william...
i write something for you....it works....take your username and password entered...now you need to validate the value obtained from your textbox in a database....
<?php
if (isset($_POST['but_ok'])) {
$u=$_POST['username'];
$pass=$_POST['password'];
echo 'username is ='.$u.' and password is '.$pass;
}
?>
<html>
<form id="loginpage" name="loginpage" method="post" action="#">
<table border=1>
<tr>
<td>Username :</td>
<td><input type="text" name="username" id="username"></td>
</tr>
<tr>
<td>Password :</td>
<td><input type="password" name="password" id="password"></td>
</tr>
<tr>
<td><input type="submit" name="but_ok" id="but_ok" value="ok" /></td>
</tr>
</table>
</form>
</html>
hope it helps...