Single Page Website With Login

A login function prevents anyone but the authorized user to make changes to the content. For this example, the username and password are saved in a separate file. As an alternative, the administrators page could be located in a password protected area of the server.

The administrator page is accessed by adding '/admin.php' to the url.

single web page

Files for 'The Nip Shoppe' website:

nip shoppe files

Contents of 'page-sections' directory:

nip shoppe page sections

View Code: