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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!