There is tutorial about this in this web site if you look, but anyway so far i know when user insert his username and password in a form, it post so you can use $_POST for checking the user or may be passing the variables in sessions so you can use it later.