Question
You will create an html page to accept user input, which should call a separate php program to process and display the data. You can
You will create an html page to accept user input, which should call a separate php program to process and display the data. You can be as creative as you want as long as you cover each requirement.
Create an html page called dog_rescue.html that has the user enter:
- First Name (fName)
- Last Name (lName)
- Email (email)
- Dog Interested In Adopting (dogName) Use a drop-down list
For Dog interested in adopting use a drop-down list use (Josh, Brad, Abby, Bryce, Mari, Brooke)
Upon clicking on submit the form should call process_dog_rescue.php.
The process_dog_rescue.php page should display the information the user entered as a confirmation.
Abby & Mari are NOT available for adoption.
Josh, Brad, Bryce, Brook are available for adoption.
Use a function IsDogAvailable to see if the dog is available. Pass the name of the dog to the function.
If available display"Thank you for filling out the dog rescue form Jon Doe. Josh is still available for adoption. We'll contact you shortly.
if NOT available for adoption"Thank you for filling out the dog rescue form Jon Doe. Unfortunately Abby is no longer available for adoption.
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