Question: Preamble The following assignment emphasizes PHP, HTM, and form validation writing. Only submit your PHP files in plain-text format (.e. do not use MSWord or

Preamble The following assignment emphasizes PHP, HTM, and form validation writing. Only submit your PHP files in plain-text format (.e. do not use MSWord or any other rich-text editors). Please DO NOT copy and paste your code into Blackboard's submission page. Instead, compress (ZIP) your files and upload to blackboard using the upload feature. Your solution should consist of two files only: 1. Registration Form.php 2. Check.php Description: Implement the page shown in Figure 1. Save the code in the file "Registration Form.php". When the Signup button is clicked, the information is submitted to the file Check.php. The state dropdown list contains three states: 1. New York 2. New Jersey 3. Connecticut The file "Check.php"performs the following: 1. If emailis empty, stateis not selected, or the agree button is not checked. Show an error message. For this assignment you can run the validation on all items at once. For example, Figure 2 shows the error message when all fields are missing, and Figure 3 shows the error message when the last two fields are missing ... 2. If all fields are correct, display a confirmation screen as shown in Figure 5. When the button on the confirmation page "Yes, Subscribe" is clicked, show the message shown in Figure 6. The button submits to the same PHP file (i.e. Check.php) Bonus Assignment Add an additional button to the confirmation page as shown in Figure 7. If the button "Edit Information (Bonus only)" is clicked, the user is redirected back to the registration form in Registration Form.php with all fields pre-filled with the previously submitted data. Please Note: 1. The bonus is simply to convert the original registration form to a sticky form. 2. The fields should take on the information that was originally filled. Do NOT hard code the values, they should be dynamically retrieved 3. You should NOT introduce a third page for the bonus question. Instead, you MUST redirect back to Registration Form.php. You will need to place proper code guards to ensure correct flow. Assignment 2 - CIS 495 - BMCC 1 30 Grading: Registration Form.php HTML layout Check.php Error validation Confirmation Yes, button click and message 25 20 25 100 Bonus Redirect to Registration Form.php Prefilled form 5 15 30 Figures: Registration Form E-mail Address: State: Please Select Error: Missing e-mail address. Check here if you agree to our terms Yes, I agree Error: Please select a state. Signup Reset Error: You must agree to our terms. Figure 1: Registration Form Figure 2: Error message all fields are missing Error: Please select a state. Error: You must agree to our terms. Error: You must agree to our terms. Figure 3: Error message - state and agree button are missing Figure 4: Error message - Agree button missing Please confirm your information E-mail: someone@yahoo.com State: Connecticut Yes, Subscribe Thank you for subscribing Figure 5: Confirmation Page Figure 6: Final Page Please confirm your information Registration Form E-mail: someone@yahoo.com State: Connecticut E-mail Address someone yahoo.com Yes, Subscribe Check bere if you Yes. I agree agree to our terms Edit Information (Bonus only) Signup Figure 7: Bonus assignment button added to Check.php Figure 8: When the Edit button is clicked, the user is sent back to the registration page with the information prefilled States New York Reset
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
