Question: Using PHP from W3Schools as a refference, code the program below: Create an index.php with two datalists at the top of the page. The first
Using PHP from W3Schools as a refference, code the program below:
Create an index.php with two datalists at the top of the page. The first datalist contains days of the week and the second datalist contains months of the year. Include navigation links on index.php to navigate to selfprocessor.php and validatecontrols.php (files used later) *Since this is only one question, I will later create these files but you could just create temp files*.
Enclose the two datalists in a form with:
a. action=daymonth.php
b. method=get
c. Submit button
Create a form processor file named daymonth.php that displays a welcome message and the day and month that was selected on index.php. Include a function called validate _input to ensure text data received from the form is safe before displaying the data. Include an HTML element of your choice to navigate back to index.php.
Create a second form with the following:
a. action=favorites.php
b. method=post
c. Name textbox (required display appropriate error message next to the control)
d. Favorite Movie textbox (required display appropriate error message next to the control)
e. Favorite Food textbox (required display appropriate error message next to the control)
f. Four radio buttons for favorite season choices (make Summer the default setting)
g. Comments (optional)
h. Submit button
Thank you so much for yout time!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
