Question
// Here is where your preprocessing code goes // An example is already given to you for the First Name $fname = $_POST['firstname']; ?> Week
// Here is where your preprocessing code goes
// An example is already given to you for the First Name
$fname = $_POST['firstname']; ?>
Week 8 Exercise 3 Form
Week 8 Exercise 3 PHP form demo
Please fill in the following form. All fields are mandatory.
First Name:
Email Address:
Postal Address:
Favourite sport: SoccerCricketSquashGolfTennisBasketballBaseball
Add me to the mailing list
The following information was received from the form:
First Name:
Modify the code given in exercise3.php so that:
A. all form values as submitted by the user are correctly displayed in the output section underneath the form. Note: The first form field has been done for you in the code.
B. the output section underneath the form only displays if the form has been submitted. Hint: review lecture notes and examples where we covered the idea of postback.
C. the Undefined Index notices do not display above the form
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