Alright, it's pretty simple, I'm trying to make a login script that checks $_POST['username'] and $_POST['password'] and make sure they both correspond to what the DB has stored. So far I have:

PHP Code:
require ('config.php');
<table width="195" border="0" cellspacing="0" cellpadding="0">
    <td width="64" height="24">Username:</td>
    <td width="131"><form name="form1" method="post" action="">
        <input name="username" type="text" id="username">
    <td><form name="form2" method="post" action="">
        <input name="password" type="password" id="password">

  <input type="submit" name="Submit" value="Submit">
  <input type="reset" name="Submit2" value="Reset">
if ($submit) {
$md5pass md5($_POST['password']);

$connect mysql_connect("$server""$user""$pass");
mysql_select_db("$db",$connect) or die('Connection Failed');
$sql 'SELECT * FROM users';
$result mysql_query($sql$connection) or die(mysql_error());

if ((
$users[0]=$_POST['username']) AND ($users[1]=$md5pass))
'Authentication Complete';
} else {
'Authentication Incomplete';
Just trying to get it to work, so it doesn't do anything complicated if the script completes, it just says Authentication complete, or rather, supposed to say it.

However, is where the script is, and it does nothing. Anyone want to help me out?