Formularelemente
Formulare sind eigentlich reines HTML.
<!DOCTYPE html>
<html lang="de">
<head>
<title>Formular</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<style>
form {
border-style: solid;
border-color: #ff0000;
border-width: 5px;
padding: 10px;
}
</style>
</head>
<body>
<div class="container-fluid">
<h2>Ein Formular</h2>
<form class="col-md-6" action="auswertung.php" method="get">
<div class="row">
<div class="col-md-6">
<label for="vorname">Vorname</label>
<input class="form-control" type="text" name="vorname" id="vorname">
</div>
<div class="col-md-6">
<label for="nachname">Nachname</label>
<input class="form-control" type="text"name="nachname" id="nachname">
</div>
</div>
<div class="row">
<div class="col-md-6">
<label for="klassenstufe">Klassenstufe</label>
<select name="klassenstufe" class="form-control" id="klassenstufe">
<option selected>Choose...</option>
<option>Unterstufe</option>
<option>Mittelstufe</option>
<option>Oberstufe</option>
</select>
</div>
<div class="col-md-6">
<legend class="col-form-label col-sm-4">Geschlecht:</legend>
<div class="col-sm-8">
<div class="form-check">
<input type="radio" name="geschlecht" id="m" value="m">
<label for="m" class="form-check-label">männlich</label>
</div>
<div class="form-check">
<input type="radio" name="geschlecht" id="w" value="w">
<label for="w" class="form-check-label">weiblich</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-check">
<legend class="col-form-label">Meine Lieblingsfächer:</legend>
<input type="checkbox" name="lieblingsfach[]" id="mathe" value="Mathe" >
<label for="mathe" class="form-check-label">Mathematik</label>
</div>
<div class="form-check">
<input type="checkbox" name="lieblingsfach[]" id="englisch" value="Englisch">
<label for="englisch" class="form-check-label">Englisch</label>
</div>
<div class="form-check">
<input type="checkbox" id="deutsch" name="lieblingsfach[]" value="Deutsch">
<label for="deutsch" class="form-check-label">Deutsch</label>
</div>
</div>
<div class="col-sm-6">
<label for="bemerkungen">Bemerkungen:</label>
<textarea class="form-control" id="bemerkungen" name="bemerkungen" rows="3"></textarea>
</div>
</div>
<div class="row">
<div class="col-md-6">
<button type="reset" class="btn btn-primary">Löschen</button>
<button type="submit" class="btn btn-primary">Absenden</button>
</div>
<div class="col-md-6"> </div>
</div>
</form>
</div>
</body>
</html>