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

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!