Frontend-Formulare mit AJAX-Loader-Pattern. Einbindung: include("functions/forms/load.php"). 13 produktive Formulare für Kontakt, Anmeldungen, Reservierungen, Login und mehr.
Kontaktformular mit E-Mail-Versand und optionaler Maillist-/SMS-Anmeldung.
Code
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);Felder
| Feld | Beschreibung |
|---|---|
| firstname / lastname | Vor- und Nachname |
| E-Mail-Adresse | |
| phone | Telefonnummer (intl-Tel-Input, countrys für Länder-Auswahl) |
| subject / message | Betreff und Nachricht |
| maillist | ID der Maillist für Newsletter-Anmeldung |
| mail.author.sender | E-Mail-Provider-ID (aus Webadmin) |
| mail.author.template | Template-ID (aus Webadmin) |