From 4eafcd14590ac17a4989a69291765149c8851d70 Mon Sep 17 00:00:00 2001 From: betty Date: Mon, 12 Jan 2026 12:06:09 +0100 Subject: [PATCH] edit messages from form-data --- static/php/message.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/static/php/message.php b/static/php/message.php index 2d2699a..1a6eea3 100644 --- a/static/php/message.php +++ b/static/php/message.php @@ -137,13 +137,14 @@ function constructMessage() $message .= "

"; $message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben"; $message .= "
"; -// foreach ( $arrAllCantons as $abbreviation ) -// { + foreach ( $arrAllCantons as $abbreviation ) + { // if ( isset(filter_input(INPUT_POST, $abbreviation)) ) -// { -// $message .= filter_input(INPUT_POST, $abbreviation) . "
"; -// } -// } + if (isset( $_POST[$abbreviation]) ) + { + $message .= $_POST[$abbreviation] . "
"; + } + } $message .= "

"; }