Hi there @endone Have you searched Google for login scripts? There are plenty out there and could save you reinventing the wheel.
In any even, you should not be using the mysql_ extensions as they do not exist in the latest version of PHP. You need to be using mysqli_ or better still PDO.