New Calendar Entry

[insert_php]
if (!empty($_POST)) {

$header = ‘From:’ . “Kalender-Eintrag per Formular <” . “stuve-sprat@fau.de” . “>” . “\r\n”;
$header .= ‘MIME-Version: 1.0’ . “\r\n”;
$header .= ‘Content-type: text; charset=utf-8’;

$body =
“Web-Formular für den Eintrag eines neuen Termins in einen der Stuve Kalender

Neuer Kalendereintrag für ” . $_POST[‘organizer’] . ” in den Kalender ” . $_POST[‘calendar’] . ”
————————
Kalender: ” . $_POST[‘calendar’] . ”
Veranstalter: ” . $_POST[‘organizer’] . ”
E-Mail: ” . $_POST[’email’] . ”

Titel: [” . $_POST[‘organizer-short’] . “] ” . $_POST[‘title’] . ”
Datum: ” . $_POST[‘date’] . ”
Uhrzeit: ” . $_POST[‘time’] . ”
Adresse: ” . $_POST[‘address’] . ”
Raum: ” . $_POST[‘room’] . ”
Beschreibung: ” . wordwrap ($_POST[‘description’]) . ”

Kommentar: ” . wordwrap ($_POST[‘comment’]) . ”

“;

if ( !empty($_POST[‘organizer’]) && !empty($_POST[‘organizer’]) && !empty($_POST[’email’]) && !empty($_POST[‘title’]) && !empty($_POST[‘date’]) && !empty($_POST[‘time’]) && !empty($_POST[‘address’]) && !empty($_POST[‘room’]) ) {

if (mail (“stuve@flammermann.de,” . $_POST[’email’], “[calendar] Neuer Kalender-Eintrag für ” . $_POST[‘organizer’] . ” in den Kalender ” . $_POST[‘calendar’], $body, $header)) {

echo ”

Calendar request successfully sent!

Your request to add a new event to the calendar ” . $_POST[‘calendar’] . ” is handled by the Stuve Working Groups PR and IT. A copy of your request has been sent to ” . $_POST[’email’] . “.

“;

} else {

echo ”

Calendar request could not be sent!

Something must have gone wrong with us. Please send your request to stuve-pr@fau.de.

“;

}

} else {

echo ”

Calendar request could not be sent!

Please check your input. All fields except description and comment are mandatory!

Calendar: ” . $_POST[‘calendar’] . ”
Organizer: ” . $_POST[‘organizer’] . ”
Organizer Shortcode: ” . $_POST[‘organizer-short’] . ”
E-Mail: ” . $_POST[’email’] . ”

Title: ” . $_POST[‘title’] . ”
Date: ” . $_POST[‘date’] . ”
Time: ” . $_POST[‘time’] . ”
Address: ” . $_POST[‘address’] . ”
Room: ” . $_POST[‘room’] . ”
Description: ” . $_POST[‘description’] . ”

Comment: ” . $_POST[‘comment’] . “

“;

}
}
[/insert_php]

Meta Information






Event Details







Kommentar