typo php mail script
This commit is contained in:
parent
a0734d27c9
commit
37d7563b69
@ -3,7 +3,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
// Validate and sanitize inputs
|
// Validate and sanitize inputs
|
||||||
$name = htmlspecialchars(trim($_POST['name']));
|
$name = htmlspecialchars(trim($_POST['name']));
|
||||||
$email = filter_var(trim($_POST['email']), FILTER_SANITIZE_EMAIL);
|
$email = filter_var(trim($_POST['email']), FILTER_SANITIZE_EMAIL);
|
||||||
$subject = htmlspecialchars(trim($_POST['subject']));
|
|
||||||
$message = htmlspecialchars(trim($_POST['message']));
|
$message = htmlspecialchars(trim($_POST['message']));
|
||||||
|
|
||||||
// Check if the email is valid
|
// Check if the email is valid
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user