added close button

This commit is contained in:
Grisu
2022-09-18 19:05:46 +02:00
parent 0a3beeeaec
commit 55e51a8214
6 changed files with 45 additions and 30 deletions

View File

@@ -5,9 +5,11 @@
$user_data = check_login($con);
if($_SERVER['REQUEST_METHOD'] == "POST") {
$team_name = sanitize_input($_POST['team_name']);
$fire_department = sanitize_input($_POST['fire_department']);
write_team($con, $team_name, $fire_department);
if(isset($_POST['save'])) {
$team_name = sanitize_input($_POST['team_name']);
$fire_department = sanitize_input($_POST['fire_department']);
write_team($con, $team_name, $fire_department);
}
header("Location: mannschaft.php");
die;
}
@@ -37,7 +39,8 @@
<span></span>
<label for="fire_department">Feuerwehr</label>
</div>
<input id="button" type="submit" value="Hinzufügen" class="btn-confirm"/>
<input id="button" type="submit" value="Hinzufügen" class="btn-confirm" name="save"/>
<a href="mannschaft.php">Schließen</a>
</form>
</div>
</div>