Hello,
someone can build me the script that I can only click on submit once . Here the Code:
<?php
if(empty($_POST['firma']) && strlen($_POST['firma']) == 0 || empty($_POST['ansprechpartner']) && strlen($_POST['ansprechpartner']) == 0 || empty($_POST['name']) && strlen($_POST['name']) == 0 || empty($_POST['stadt']) && strlen($_POST['stadt']) == 0 || empty($_POST['email']) && strlen($_POST['email']) == 0)
{
return false;
}
$firma = $_POST['firma'];
$ansprechpartner = $_POST['ansprechpartner'];
$name = $_POST['name'];
$stadt = $_POST['stadt'];
$kategorie = $_POST['kategorie'];
$email = $_POST['email'];
$optin = $_POST['optin'];
$to = 'mail@mail.de'; // Email submissions are sent to this email
// Create email
$email_subject = "Neue Händler Registrierung";
$email_body = "V \n\n".
"Firma: $firma \nAnsprechpartner: $ansprechpartner \nName: $name \nStadt: $stadt \nKategorie: $kategorie \nEmail: $email \nOptin: $optin \n";
$headers = "MIME-Version: 1.0\r\nContent-type: text/plain; charset=UTF-8\r\n";
$headers .= "From: mail@mail.de\n";
$headers .= "Reply-To: $email";
mail($to,$email_subject,$email_body,$headers); // Post message
return true;
?>