This is a contact form that was made with HTML and CSS and validates with PHP. The goal of the website is to collect the information the user provides and have the PHP mailer class email me the information. The user also has the option to receive a copy of the email.
In order for the form to be sent, the user has to provide their name and email. If the user tries to submit without entering their name and email, the form will display an error message. The name and email boxes will also be outlined in red.
Regardless of rather the form goes through or not, the form will repopulate the user’s answers. This was done by using PHP to check for any user input.
The website uses the PHP mailer class to email me the user’s information. The form can also send the user a copy of the email. This is done by simply using the user’s email as a recipient along with my email.
After completing this project, I learned that PHP is a useful language to learn. Not only has this project made me learn a lot about PHP, I was also able to teach and help my classmates understand the language better.