diff --git a/validate-email.php b/validate-email.php new file mode 100644 index 0000000..8c91fa7 --- /dev/null +++ b/validate-email.php @@ -0,0 +1,15 @@ +real_escape_string($_GET["email"])); + +$result = $mysqli->query($sql); + +$is_available = $result->num_rows === 0; + +header("Content-Type: application/json"); + +echo json_encode(["available" => $is_available]); + +?> \ No newline at end of file