From fc1768ef15e9f5ce24c3afbebec1e92eac1fe1f8 Mon Sep 17 00:00:00 2001 From: hxcde <30338980+hxcde@users.noreply.github.com> Date: Tue, 28 Mar 2023 12:37:38 +0200 Subject: [PATCH] Update contact-form-process.php to Eng --- contact-form-process.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contact-form-process.php b/contact-form-process.php index d7127e5..7e16b01 100644 --- a/contact-form-process.php +++ b/contact-form-process.php @@ -2,11 +2,11 @@ if (isset($_POST['Message'])) { $email_to = "email@example.de"; - $email_subject = "Anonymes Kontaktformular"; + $email_subject = "Contact form"; function problem($error) { - echo "Es gibt ein Problem mit deiner Eingabe:

"; + echo "There is a problem with your input:

"; echo $error . "

"; echo "

"; die(); @@ -16,7 +16,7 @@ if (isset($_POST['Message'])) { !isset($_POST['Name']) || !isset($_POST['Message']) ) { - problem('Es gibt ein Problem mit deiner Eingabe:'); + problem('There is a problem with your input:'); } $name = $_POST['Name']; @@ -33,11 +33,11 @@ if (isset($_POST['Message'])) { $string_exp = "/^[A-Za-z .'-]+$/"; if (!preg_match($string_exp, $name)) { - $error_message .= 'Das eingetragene Anliegen scheint nicht gültig zu sein!
'; + $error_message .= 'The registered concern does not seem to be valid!
'; } if (strlen($message) < 2) { - $error_message .= 'Die eingetragene Nachricht scheint nicht gültig zu sein!
'; + $error_message .= 'The registered message does not seem to be valid!
'; } if (strlen($error_message) > 0) { @@ -52,8 +52,8 @@ if (isset($_POST['Message'])) { return str_replace($bad, "", $string); } - $email_message .= "Anliegen: " . clean_string($name) . "\n"; - $email_message .= "Nachricht: " . clean_string($message) . "\n"; + $email_message .= "Concerns: " . clean_string($name) . "\n"; + $email_message .= "Message: " . clean_string($message) . "\n"; // email header $headers = 'From: ' . $email . "\r\n" . @@ -62,7 +62,7 @@ if (isset($_POST['Message'])) { @mail($email_to, $email_subject, $email_message, $headers); ?> - Deine Nachricht wurde versendet! + Your message has been sent!