Question
Overview of Project 3 of Chapter 12 from Foundamentals of Web Development (2nd edtion), please help with the code. Examine ch12-proj3-form.php and view in browser
Overview of Project 3 of Chapter 12 from Foundamentals of Web Development (2nd edtion), please help with the code.
Examine ch12-proj3-form.php and view in browser and then the editor. Notice that it contains ausing method=get and action=ch12-proj3- result.php. Examine data.inc.php that contains the data for the paintings to be displayed in this form. The ch12-proj3-form.html shows the markup that your code will have to generate.
You will implement ch12-proj3-result.php using code similar to that shown in Figure 12.29, except rather than hard-coded font sizes and text labels, you will use the form data passed to it. Examining the form elements in ch12- proj3-form.php will indicate the values to use with the $_GET superglobal array.
Implement as well a width query string that, if present, will use the imagescale() function to return an image of the specified width (the height will be the same as the width).
You can use this width parameter to generate the thumbnails at the top of ch12-proj3-form.php by adding a loop within the grid-container. Simply loop through the supplied data array, and echo an element with the src attribute set to ch12-proj3-result.php that has a file querystring parameter set to the filename from the data array and a width querystring parameter set to 100. For the supplied JavaScript to work correctly, also set the data-value attribute of the img to the filename also.
Generate the options for the list using a PHP loop. Eachshould have the value set to the filename.
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