<?php
session_start();
if($_SESSION['user']!="")
{
 header("Location:home.php");
}
?>

<FORM action="check.php" method="post">
    <fieldset>
        <legend>Log In</legend>
            <table>
                <tr>
                    <th>Username</th>
                    <td>
                        <input type=text name=username />
                    </td>
                </tr>
                <tr>
                    <th>Password</th>
                    <td>
                        <input type=password name=password />
                    </td>
                </tr>
                <tr>
                    <th colspan=2>
                        <input type="submit" value=Ok />
                    </th>
                </tr>
            </table>
    </fieldset>
</FORM>
