This is the source code for the PHP contact form tutorial on Youtube.
Part one of the PHP contactform uses the server's build in mail server and is called basic.php
Part two of the PHP contact form uses phpmailer to enable the use of a third party email server like gmail and is called intermediate.php
Part three of the PHP contact form uses MySQL to store the information for later use and is called advanced.php
The full PHP youtube series can be viewed here: https://www.youtube.com/watch?v=HNbeB8XIKaE&list=PL-Y70SkbVO6lITj2zoU9lNm74OTqVR0ke