Home Work Assignment 17 (due 29 Apr 2019)

This assignment is on AJAX. You will create a simple user registration form that will have two text fields Username and Password and two buttons Submit and Reset.

On the server side, you will be storing the username and password in a text file called passwd. The password is stored in encrypted form. Each line of the passwd file has the following information - username:password.

Develop an AJAX application that will do the following: once the user enters a username, write a JavaScript function that will invoke a PHP script to check if the username already exists in the passwd file. If it does, an alert box should pop up on the client side letting him know that. If the username has not been taken the script should nothing.

Once the data is received on the server side, another PHP script will check if the username has been taken or not. If the user name has not been taken, then the new user name and the encrypted password is appended in the passwd file in the format specified and the user notified. If the user name has been taken, then a webpage is created letting the user know of that fact.

After you complete your AJAX application add the information to the table that you created in your index or welcome page. We should see your links before 11 pm on Monday, 29 Apr 2019. There are no extensions to this assignment.