hey mate
in both your username and password boxes type this:
' or 'x'='x
if your not checking the input the above will most likely let you in assuming your only checking if there is more than 0 records in the record set
if your on mysql i think you might have to change the query slightly:
" or "x"="x
don't know mysql but ive always thought basic queries were the same syntax.
having been a victim of sql injection, i have learnt how important it is to check EVERY input. you can even do it in a URL query string.
Check out "regular expressions" i use these to filter input. IE only allow characters a-z though. you will either get true or false with it. depending on that act upon it by stopping it before the sql query is executed and redirected them to the login page with a message - login.php?error=10
error 10 being an invalid character message or just bad login etc.
by the way im an ASP man myself, but the above principles still apply to PHP.