Question: This is Q4 in assignment #1 (Q4. (25 points) Create a webpage having a form that collects the feedback from visitors. The form contains: a)
This is Q4 in assignment #1
(Q4. (25 points) Create a webpage having a form that collects the feedback from visitors. The form contains: a) a text field that collects a visitor's name b) a text field that collects a visitor's phone number c) a text field that collects a visitor's email d) three select boxes representing day, month, and year. e) a text filed that collects the comments provided by a visitor f) two buttons named submit and reset. (Note that since how to process a form still has not been covered by javascrip and php, you can set the value of the action attribute as empty.))
Q1. Repeat Q4 in assignment #1 by adding the following code:
(1) set the following CSS properties for the text fields, text area, and select boxes (10 points):
font-family, font-style
font-size
color
(2) adding a Javascript script that checks the validity of the form. That is, when clicking the "submit" button, if a text field or text area is empty, warn the user and ask the user to re-input. (10 points)
(3). adding a PHP script that collects the data from the form and then prints the data. (15 points)
Q2. Repeat Question1, but the PHP script performs the following operations:
(1). collect the data from the form (15 points),
(2). create a database and a table (20 points),
(3). store the data into the database (25 points),
(4). print a message to reminder user that the data have been added into the database (5 points).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
