Programming Question

Jul 5th, 2013

Anonymous

Category:

Programming

Price: $5 USD

Question description

Create a web form that asks the user to enter a password. The form must contain a textbox for the user to enter the password and submit and reset buttons. Save this web form in a html file called: Password.html. Create a PHP script to validate the password entered on the form to check if it complies with the following criteria:

1. The password must be at least eight characters long. 2. It must begin with a letter followed by any letter, digit, or underscore symbol. 3. The password must end with a digit. 4. The password is case-insensitive.

Save the form-handler script as Validate_pwd.php. The script MUST use a regular expression to validate the password. If the password is valid, the program should display a message saying: Valid Password. Otherwise, it should display a message saying: Invalid Password.