Question
In this practice, you will use PHP to build an application that allows a user to insert new records into a relational database. 1. HTML
In this practice, you will use PHP to build an application that allows a user to insert new records into a relational database. 1. HTML Static Content - Web Form On the landing page, create web forms that collect information from the user. The first web form should collect the information required to insert a new Part into the PARTS table. After the data has been successfully validated, submit it to parts.php. (3 marks) The second web form should collect the information required to insert a new Vendor into the VENDORS table. After the data has been successfully validated, submit it to vendors.php. (3 marks) The final web form will be used to construct a parameter query. After the data has been successfully validated, submit it to parameter.php. (1 mark) Refer to assignment5.mdb for more details about the table schemas. 2. HTML Static Content - Instructions (1 mark) Be sure to explain to the user what your web application is supposed to do. Include details on how to use the application. Explicitly describe the construction of the parameter query. 3. JavaScript - Form Validation All user inputs must be validated so that they match the data types of the corresponding field from the database. Do not allow null fields if the data is required. (4 marks) If any errors exist, display a compound message that includes all of the error messages. Do not use a JavaScript popup box for this purpose. (2 marks) 4. PHP - Form Validation All user inputs must be validated so that they match the data types of the corresponding field from the database. Do not allow null fields if the data is required. (4 marks) If any errors exist, display a compound message that includes all of the error messages. (2 marks) 5. PHP - Data Persistence From parts.php and vendors.php: After the data has been successfully validated, display a message that summarizes the data that the user provided. (2 marks) Insert the data into the corresponding table. (2 marks) 6. PHP - Parameter Query (2 marks) From parameter.php: Create a parameter query incorporating the information that the user submitted. You are completely free to make the query as complicated as you like. Execute the query and display the results.
the file you also need is available here: https://1drv.ms/u/s!AkUBUCNL6pd_gUuLUERx_RJNXI9Q
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