Some ideas that may help you along:
You say you get a blank page when you mix the HTML and PHP. Do you have error reporting and display turned on? You should while you're developing. And leave out the "@" signs. While you're working on your code you want to see all messages, and when it's in production you want them logged. And in fact the one before "$_GET['do']" may be causing the blank page if the element isn't set; an error message would otherwise tell you that.
Do you have output in "ravinh.inc"? If you do, your session assignment and redirection won't work (and with error display off, you wouldn't know why).
I don't see why two select queries are neccesary. Just select the password (instead of "loginName") in the first one, then check it for a match with the posted one. You might also want to store passwords in the database "encrypted" (e.g. with md5) and compare them to encrypted input (like: if $db_pw == md5($input_pw)).
You use "$_POST['fusername']" twice before you assign it to another variable, then immediately assign that to the session element (and don't use either again). That's not major, but it is kind of senseless.
Using "include" to load the login form seems awkward to me, and even so "include_once" would probably work better; I'm not real sure. Try loading the same script, after unsetting all your request arrays, using something like "if (isset($_POST['submit']))" to execute the appropriate part of the script, or load an entirely different script for the login.