I'm trying to get a login page to do multiple functionalities, instead of creating a new page to handle it. For example, it needs to validate login info., and respond back to that page if the login wasn't successful. Also, it needs to have a forgot password link that links to the same page, but makes the page look totally different. I've tried querystring variables, eg if blah blah = true then... but the page doesn't execute all the code the next time round. Any ideas on how to approach this problem?