Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this HTML program. We are using PHP and AJAX. You don't need to copy the rubric into the program, just make

Please help me with this HTML program. We are using PHP and AJAX. You don't need to copy the rubric into the program, just make sure that the tasks in the rubric are complete. Please post all files that contain code. Thank You!

image text in transcribed

image text in transcribed

[-] Program 2: Unlock Accounts (35 pts) 1. Within your "final" folder, create a program called "program2.php" 2. This program must list all of the accounts that are currently locked, in other words, those records in which the value of the "failedAttempts" field is 3 (or higher). The number of failed attempts must also be displayed. Initially, there are just two locked accounts: Username Failed Attempts Action 3 Unlock opez mgriffin 3 Unlock 3. Upon clicking on any of the Unlock buttons, an AJAX function must be triggered. This function must reset the "failedAttempts" field back to 0. 4. The AJAX function must also update the display, informing about the changes done. For instance, if the account "jlopez" was unlocked, the table should now display: Username Failed Attempts Action jlopez mgriffin Account Successfully Unlocked Unlock 0 3 Once you finish, come back here and click on the "Copy Rubric" button below. Then press CTRL+C to copy the rubric HTML code into the clipboard. Paste it at the bottom of your program and update the background color of the items you've completed. If you're unsure about an item, use white background. Copy Rubric Task Description Points The list of locked accounts is properly displayed, including the username and failed attempts 1 7 When clicking on any of the "unlocked" buttons a JavaScript function is executed 2 3 When clicking on the "unlocked" button, the AJAX function updates the value of the failedAtttempts field back to 0 3 15 [-] Program 2: Unlock Accounts (35 pts) 1. Within your "final" folder, create a program called "program2.php" 2. This program must list all of the accounts that are currently locked, in other words, those records in which the value of the "failedAttempts" field is 3 (or higher). The number of failed attempts must also be displayed. Initially, there are just two locked accounts: Username Failed Attempts Action 3 Unlock opez mgriffin 3 Unlock 3. Upon clicking on any of the Unlock buttons, an AJAX function must be triggered. This function must reset the "failedAttempts" field back to 0. 4. The AJAX function must also update the display, informing about the changes done. For instance, if the account "jlopez" was unlocked, the table should now display: Username Failed Attempts Action jlopez mgriffin Account Successfully Unlocked Unlock 0 3 Once you finish, come back here and click on the "Copy Rubric" button below. Then press CTRL+C to copy the rubric HTML code into the clipboard. Paste it at the bottom of your program and update the background color of the items you've completed. If you're unsure about an item, use white background. Copy Rubric Task Description Points The list of locked accounts is properly displayed, including the username and failed attempts 1 7 When clicking on any of the "unlocked" buttons a JavaScript function is executed 2 3 When clicking on the "unlocked" button, the AJAX function updates the value of the failedAtttempts field back to 0 3 15

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

LO6 Describe how individual pay rates are set.

Answered: 1 week ago