Lab 05 - Contact form

Goals of the exercise

  • Understanding the operation of an environment using Apache, MySQL, and PHP
  • Learning to integrate PHP code into an existing web project using HTML and CSS
  • Learning to work with forms and controls in HTML and adapting the form to the processing of submitted data
  • Understanding the security risks related to the processing of form data
Go to the solution
the PHP logo

Description

For this lab we had to learn how to create a database both locally and on our Plesk domain. We then had to be able to post and get the info to and from the database and display it on our website. We had to do this with a form, which we later also had to implement on our portfolio website.

Related items

I used XAMMP to test out my database.

Reflection

  • Wauw

    Even though most of the PHP and SQL code was provided, I still found a that my prior knowledge of databases and SQL helped me to debug faster or understand this lab exercise better.

  • Auwch!

    I didn't really have any big problems with this lab exercise.

  • Hmmm?

    For our portfolio website we need to have a contact form, but we need to add buttons to indicate where the user found me. I think this will be a tricky thing to do and will definitely take some time.