Follow:  Follow PHPExercises on Twitter  Follow us on Facebook


These exercises will ask you to create forms and manipulate user input. You will find more need for control structures here as well.

The Forms section includes the following exercises:

#1: Simple Form with PHP Response
Create two files, one to get the user input, one to respond to the user.
#2: Interactive Form with If-Else Statement
Rewrite Forms #1 into one file for both input and response.
#3: If-Elseif-Else Construction
Using a poem about the days Monday-Saturday, create a form that will return the relevant line in response to the user's choice of day.
#4: Switch Statement
Rewrite the last exercise using a switch statement and a select field.

-- Home --