added close button
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user