Lab 5 - Contact form
Goals of the exercise
- Understand how an environment with Apache, MySQL, and PHP works.
- Learn how to integrate PHP code into an existing web project using HTML and CSS.
- Learn how to work with HTML forms and controls, and how to process submitted data correctly.
- Understand the security risks related to handling form data.
Go to the solution of the exercise: click here
Description
In this exercise, we worked in a web environment using Apache, MySQL, and PHP. We integrated PHP code into an existing HTML/CSS project and created forms to collect and process user data. The submitted data was handled through PHP and stored in a MySQL database, with attention to basic security measures like input validation and sanitization.
Related links
I did not use any external sources for this exercise, i only followed the documentation provided in our lab.
Reflection
-
Good
-
I successfully set up and configured the Apache, MySQL, and PHP environment.
-
The form correctly sent and processed the user input, and the data was stored in the MySQL database.
-
-
Difficult
-
I sometimes needed extra time to understand the interaction between PHP scripts and the database.
-