Mini Kabibi Habibi

Current Path : C:/xampp/htdocs/Website/includes/
Upload File :
Current File : C:/xampp/htdocs/Website/includes/signup.inc.php

<?php

if ($_SERVER["REQUEST_METHOD"] === "POST") {

	$username = $_POST["username"];
	$pwd = $_POST["pwd"];
	$email = $_POST["email"];

	try {
		
		require_once 'dbh.inc.php';
		require_once 'signup_model.inc.php';
		require_once 'signup_contr.inc.php';

		//ERROR HANDLERS
		if (is_input_empty($username, $pwd, $email)) {
		}
		if (is_email_invalid($email)) {
		}
		if (is_username_taken($pdo, $email)) {
		}
		if (is_email_registered($pdo, $email)) {
		}
	 } catch (PDOException $e) {
		die "Query failed: " . $e->getMessage();
	}
} else {
	header("location: ../index.php");
	die();
}