OK,
Here's what I have.
This is my simple form.
<form action="log_test.php" method="post">
<input type="text" name="username">
<input type="password" name="password">
<input type="submit" name="submit" value="Log in">
</form>
and here is my script
$query = "SELECT userId, password FROM table";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
echo $row['userId'];
echo $row['password'];
}
I got it pulling up and printing everything in the database, but how can I take the user input and see if it matches one in the database.
I don't think it works the way I'm doing it, maybe because I am trying to match one user input to all the database.
But that's just a guess.
Thanks
Dan