I created a contact form and I can't seem to find the error in the code now my problem is this when I click the Submit button it returns a blank page without displaying any error.
Error reporting is probably not set to display errors, it doesn't mean that there is none.
Add the followings line to your php page :
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
You'll then see errors.
If you don't want errors to display and it's an ajax request to your php script, you can console.log the server response into your javascript request handler :)