Formulare

Frontend-Formulare mit AJAX-Loader-Pattern. Einbindung: include("functions/forms/load.php"). 13 produktive Formulare für Kontakt, Anmeldungen, Reservierungen, Login und mehr.

Kontakt

getContactForm($config)

Kontaktformular mit E-Mail-Versand und optionaler Maillist-/SMS-Anmeldung.

include("functions/forms/load.php");

$config = [];
$config["firstname"]["field"] = 'true';
$config["firstname"]["required"] = 'true';
$config["firstname"]["label"] = 'Vorname';
$config["lastname"]["field"] = 'true';
$config["lastname"]["required"] = 'true';
$config["email"]["field"] = 'true';
$config["email"]["required"] = 'true';
$config["phone"]["field"] = 'true';
$config["phone"]["countrys"] = '"ch", "de", "at"';
$config["message"]["field"] = 'true';
$config["message"]["required"] = 'true';
$config["mail"]["author"]["send"] = 'true';
$config["mail"]["author"]["sender"] = '3'; // E-Mail-Provider-ID
$config["mail"]["author"]["template"] = '2'; // Template-ID
$config["submit"]["label"] = 'Senden';

getContactForm($config);
FeldBeschreibung
firstname / lastnameVor- und Nachname
emailE-Mail-Adresse
phoneTelefonnummer (intl-Tel-Input, countrys für Länder-Auswahl)
subject / messageBetreff und Nachricht
maillistID der Maillist für Newsletter-Anmeldung
mail.author.senderE-Mail-Provider-ID (aus Webadmin)
mail.author.templateTemplate-ID (aus Webadmin)