Use an if statement, so if the username and password are correct, you can redirect using javascript or the header function: header( 'Location: http://www.yoursite.com/new_page.html' ); Don
You would need to give more specifics for someone to help you out... How many username and passwords will the input terms need to browse through? When dealing with logins, keep a couple more things in mind... 1) use some form of encryption/hash to increase user's security 2) don't use cookies, instead do sessions, as the user cannot (easily) manipulate the contents 3) optional, keep track of how many times an invalid user/pass combo has been entered, and after too many tries, block the IP