Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Once you hit submit, there should be an image of one of the animals. I have these animals on my list in my static folder:
Once you hit submit, there should be an image of one of the animals.
I have these animals on my list in my static folder: deer, elephant, dog, panda, and monkey and they all have jpg extensions.
Thank you for your help.
Write a flask app where a user can select a description of a picture from a select box. You can choose any 5 images you want. The form should be a GET form. When the user submits the form, route the user to the picture they selected. This means that your web server should be storing 5 different images, but you should would only show one at a time, based on the query parameter from the form submit. Because you are using a GET form, this resultant page should still work if you navigate to it directly, but with an error message if no query parameter was included or if the query parameter is invalid. Remember to extract the common template HTML code to a layout
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