Login Systems, Password Protection, and Custom Pages
Password systems can be used for both security and user customization purposes. There are two ways to implement a password protected area with iHTML.


Table Set-up
Have a database table set up with information relating to the person. For example, Name, Login, Password, and Preferred background color.
idNameLoginPasswordbgcolor
1William ShakespeareBillothellogray
2John A. MacDonaldJohnCanadared


The all iHTML based method


Step 1: Create a new user

Enter Name:      
Choose a colour:    Blue    Red     Green
Enter login:     
Enter Password:        

View the code for this form. (you will be able to access the processing code on the next page)


Step 2: Login as the new user

Enter login:     
Enter Password:        

View the code for this form. (you will be able to access the processing code on the next page)


The web server based login method

If you would prefer to use the built in web server directory restricting features, you can put the above code in the secured directory, and use the :i_auth_user and :i_auth_pass iHTML environmental variables to determine who the user is.


Download source code and Access database