I have learned how to connect, now I would like the user to be able to login to a certain webpage. Say coming from a page called login.htm, the form submits to a login.php page which checks the MySQL database, checks to see if the username and password are valid, then redirects to the appropriate page. anybody know where there is some code on this or have any suggestions? Thanks