Form Validation and Submission to database
PHP Snippet 1:
include 'upload_file.php'
if($nameErr == $contactErr == $cityErr == $serviceErr == ""){
upload_file($_POST['name'], $_POST['city'], $_POST['contact'], $_POST['service'])
}
include 'upload_file.php'
if($nameErr == $contactErr == $cityErr == $serviceErr == ""){
upload_file($_POST['name'], $_POST['city'], $_POST['contact'], $_POST['service'])
}