added close button
This commit is contained in:
@@ -5,9 +5,11 @@
|
||||
$user_data = check_login($con);
|
||||
|
||||
if($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
$station_name = sanitize_input($_POST['station_name']);
|
||||
$station_pos = sanitize_input($_POST['station_pos']);
|
||||
write_station($con, $station_name, $station_pos);
|
||||
if(isset($_POST['save'])){
|
||||
$station_name = sanitize_input($_POST['station_name']);
|
||||
$station_pos = sanitize_input($_POST['station_pos']);
|
||||
write_station($con, $station_name, $station_pos);
|
||||
}
|
||||
header("Location: stationen.php");
|
||||
die;
|
||||
}
|
||||
@@ -23,16 +25,17 @@
|
||||
<div class="form_div">
|
||||
<form method="post">
|
||||
<div class="txt_field">
|
||||
<input id="station_name" type="text" name="station_name" required/>
|
||||
<input class="input_field" id="station_name" type="text" name="station_name" required/>
|
||||
<span></span>
|
||||
<label for="station_name">Name</label>
|
||||
</div>
|
||||
<div class="txt_field">
|
||||
<input id="station_pos" type="text" name="station_pos" required/>
|
||||
<input class="input_field" id="station_pos" type="text" name="station_pos" required/>
|
||||
<span></span>
|
||||
<label for="station_pos">Standort</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="stationen.php" class="btn-close">Schließen</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user