edit messages from form-data

This commit is contained in:
betty 2026-01-12 11:17:29 +01:00
commit a232043d23
2 changed files with 25 additions and 25 deletions

View file

@ -161,49 +161,49 @@ kommentar = 'age und hobbies sind honeypots'
<label for="OW">OW: Obwalden</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<input type="checkbox" id="SG" name="SG" value="SG - St Gallen">
<input type="checkbox" id="SG" name="SG" value="SG: St Gallen">
<label for="SG">SG: St Gallen</label>
</td>
</tr>
<tr>
<td>
<input type="checkbox" id="SH" name="SH" value="SH - Schaffhausen">
<input type="checkbox" id="SH" name="SH" value="SH: Schaffhausen">
<label for="SH">SH: Schaffhausen</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<input type="checkbox" id="SO" name="SO" value="SO - Solothurn">
<input type="checkbox" id="SO" name="SO" value="SO: Solothurn">
<label for="SO">SO: Solothurn</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<input type="checkbox" id="SZ" name="SZ" value="SZ - Schwyz">
<input type="checkbox" id="SZ" name="SZ" value="SZ: Schwyz">
<label for="SZ">SZ: Schwyz</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<input type="checkbox" id="TG" name="TG" value="TG - Thurgau">
<input type="checkbox" id="TG" name="TG" value="TG: Thurgau">
<label for="TG">TG: Thurgau</label>
</td>
</tr>
<tr>
<td>
<input type="checkbox" id="UR" name="UR" value="UR - Uri">
<input type="checkbox" id="UR" name="UR" value="UR: Uri">
<label for="UR">UR: Uri</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<input type="checkbox" id="VD" name="VD" value="VD - Waadt">
<input type="checkbox" id="VD" name="VD" value="VD: Waadt">
<label for="VD">VD: Waadt</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<input type="checkbox" id="VS" name="VS" value="VS - Wallis">
<input type="checkbox" id="VS" name="VS" value="VS: Wallis">
<label for="VS">VS: Wallis</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<input type="checkbox" id="ZG" name="ZG" value="ZG - Zug">
<input type="checkbox" id="ZG" name="ZG" value="ZG: Zug">
<label for="ZG">ZG: Zug</label>
</td>
</tr>
<tr>
<td>
<input type="checkbox" id="ZH" name="ZH" value="ZH - Zürich">
<input type="checkbox" id="ZH" name="ZH" value="ZH: Zürich">
<label for="ZH">ZH: Zürich</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>

View file

@ -132,21 +132,21 @@ function constructMessage()
// form inputs cantons - only FPP
$arrAllCantons = [ "AG", "AI", "AR", "BE", "BL", "BS", "FR", "GE", "GL", "GR", "JU", "LU", "NE", "NW", "OW", "SG", "SH", "SO", "SZ", "TG", "UR", "VD", "VS", "ZG", "ZH" ];
if ( ! isset($organisation) && $lang == "DE" )
{
$message .= "<hr/><p><b>";
$message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
$message .= "</b><br/>";
foreach ( $arrAllCantons as $abbreviation )
{
if ( isset(filter_input(INPUT_POST, $abbreviation)) )
{
$message .= filter_input(INPUT_POST, $abbreviation) . "<br/>";
}
}
$message .= "</p>";
}
// if ( ! isset($organisation) && $lang == "DE" )
// {
// $message .= "<hr/><p><b>";
// $message .= "Kantone, in denen Sie eine Bewilligung (beantragt) haben";
// $message .= "</b><br/>";
// foreach ( $arrAllCantons as $abbreviation )
// {
// if ( isset(filter_input(INPUT_POST, $abbreviation)) )
// {
// $message .= filter_input(INPUT_POST, $abbreviation) . "<br/>";
// }
// }
//
// $message .= "</p>";
// }
$modulpop2 = filter_input(INPUT_POST, 'modulpop2');
if (isset($modulpop2))