HTML CSS and PHP tutorial Working Contact form for websites
- Subject: HTML5 Tutorials
- Learning Time: 1 hour
In this tutorial we are going to create a working contact form from scratch. There are 3 files included in this tutorial, index.html, style.css and contact.php. Contact forms are important for any website and if you are looking for a quick and easy way to implement one in your website this one will do just fine. This contact form is very basic and it uses the PHP mail function to send the information over the server. You will need to host your website in order for it to work. We are going to do all of it using only windows note pad app. You can use Brackets, Sublime Text or even dream weaver to code your own.
Lesson objectives –
- Create a simple form in html
- Style the form and page using CSS
- Create a PHP script for the contact.php file
- All codes are included in the tutorial below.