Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PHP 1) Update your home page, containing 10 images for the magazine covers available for purchase, so that each time someone visits the page, they
PHP
1) Update your home page, containing 10 images for the magazine covers available for purchase, so that each time someone visits the page, they see a different order of magazine covers on that page. (Note: Only the images are required, all other information is optional. You may edit your original home page from previous assignments, or create an entirely new one.) (8 points) 2) Define an associative array with magazine titles as the key and the associated price as the value, for the above 10 magazines. (5 points) Sort the array in alphabetic order of the titles. (3 points) Display to the browser the key value pairs from this sorted array using a foreach or while loop. (7 points) (Total: 15 points) 3) Create a user review form, linked from the home page, for customers to be able to provide reviews for a specific magazine. Input fields on the user review form should include A dropdown list of the magazines, to select the one to be reviewed The rating in 5 stars The user's review (3 points) When a user submits a review for a magazine, certain words in the review may need to be replaced for censorship purposes, before publishing the review on the website. Write a function that searches the review for the following words: disgusting, ghastly, vile and horrible, and replaces these words with the string '!@#$%". (8 points) After submitting the review, the output page should correctly display all three of the above submitted information: the magazine title selected, the rating provided and the censored review. (6 points) (Total: 17 points) 1) Update your home page, containing 10 images for the magazine covers available for purchase, so that each time someone visits the page, they see a different order of magazine covers on that page. (Note: Only the images are required, all other information is optional. You may edit your original home page from previous assignments, or create an entirely new one.) (8 points) 2) Define an associative array with magazine titles as the key and the associated price as the value, for the above 10 magazines. (5 points) Sort the array in alphabetic order of the titles. (3 points) Display to the browser the key value pairs from this sorted array using a foreach or while loop. (7 points) (Total: 15 points) 3) Create a user review form, linked from the home page, for customers to be able to provide reviews for a specific magazine. Input fields on the user review form should include A dropdown list of the magazines, to select the one to be reviewed The rating in 5 stars The user's review (3 points) When a user submits a review for a magazine, certain words in the review may need to be replaced for censorship purposes, before publishing the review on the website. Write a function that searches the review for the following words: disgusting, ghastly, vile and horrible, and replaces these words with the string '!@#$%". (8 points) After submitting the review, the output page should correctly display all three of the above submitted information: the magazine title selected, the rating provided and the censored review. (6 points) (Total: 17 points)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started