On the page you want the login form to be on, apply the first code to the body section of that page. For the php page, include all of your content on the members page and put the second code into the head of the document.
Printable View
On the page you want the login form to be on, apply the first code to the body section of that page. For the php page, include all of your content on the members page and put the second code into the head of the document.
In theory, you can do this with JavaScript and HTML. But it isn't practical. Any user could view the source code and find out the password and username. Also, and user without JavaScript enabled won't be able to do anything.