after you authenticated a username and password, how do you redirect to a different page?
// previous code header("Location: http://redirect.to.here");
I believe that'll work.
Yes that code will work. Just watch for spaces and don't send any output to the visitor or you will get headers already sent error.
More can be found here http://www.php.net/manual/en/function.header.php
Cgraz