In order to accomplish this on a single page, you simply need to know how to make forms and handle the $_POST variables. If you want to be able to have users login and track their session across multiple pages, you'll need to learn how to use $_SESSION variables as well.