Voll Upload SGD Fachinformatiker PHP

This commit is contained in:
2026-06-03 13:46:32 +00:00
parent 1256ec2190
commit 84a568d89c
265 changed files with 9961 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
// 2.4.1.2
function setOption ($gang, $wert, $text){
$ausgabe = "<option value='{$wert}'";
if (isset($_POST["vSpeise"])) {
if ($_POST[$gang] == $wert) {
$ausgabe .= " selected";
}
}
// Wenn Kein Text übergeben wird, dann soll der Text mit dem Wert identisch sein
if(empty($text)) {
$text = $wert;
}
$ausgabe .= ">$text</option>\n";
echo $ausgabe;
}
?>