Password Protecting Part of a Page

Have you ever wanted to put something on a web page that is only accessible to certain people. Well, if your web host supports PHP then you can easily provide additional password protected page content by using a simple PHP script around the content that is to be protected.

To first show you how the script works, the rest of the content of this page is protected using the script. To be able to view it you must enter the correct userid and password. This is only an example of how the script works so I will tell you now that the userid is felgall and the password is secret. If you enter those values into the logon form below then the rest of the page will be displayed.

Password Protected Section of the Page