PHP Programming Question

Price: $10 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.

Tutor Answer

(Top Tutor) Daniel C.
School: University of Maryland
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1821 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors