Show sourcecode
The following files exists in this folder. Click to view.
ovning_forms1.php
ovning_forms1_mot.php
ovning_forms2.php
ovning_forms2_mot.php
ovning_forms3-6.php
ovning_forms3_mot.php
ovning_forms7.php
ovning_forms7_mot.php
ovning_forms8.php
ovning_forms3-6.php
53 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>får får form</title>
<style>
#fname, #ename, #klass{display: block;margin-bottom: 1rem;}
</style>
</head>
<body>
<form action="ovning_forms3_mot.php" method="POST">
<label for="fname">Förnamn:</label>
<input type="text" name="fname" id="fname" required>
<label for="ename">Efternamn:</label>
<input type="text" name="ename" id="ename" required>
<label for="klass">Klass:</label>
<input type="text" name="klass" id="klass" required>
<br>
<label for="food">Favoriträtt(er):</label>
<input type="checkbox" name="food[]" value="Carbonara">Carbonara</input>
<input type="checkbox" name="food[]" value="Lasange">Lasange</input>
<input type="checkbox" name="food[]" value="Sushi">Sushi</input>
<input type="checkbox" name="food[]" value="Kötbullar">Kötbullar</input>
<input type="checkbox" name="food[]" value="Polen">Polen</input>
<input type="checkbox" name="food[]" value="Weinerbröd">Weinerbröd</input>
<br>
<br>
<fieldset>
<label for="kurs">Roligaste kurs:</label>
<br>
<input type="radio" name="kurs" id="kurs" value="Kemi"><label for="Kemi">Kemi</label><br>
<input type="radio" name="kurs" id="kurs" value="Fysik"><label for="Fysik">Fysik</label><br>
<input type="radio" name="kurs" id="kurs" value="Matematik"><label for="Matematik">Matematik</label><br>
<input type="radio" name="kurs" id="kurs" value="Religionskunskap"><label for="Religionskunskap">Religionskunskap</label><br>
<input type="radio" name="kurs" id="kurs" value="Idrott"><label for="Idrott">Idrott</label><br>
<input type="radio" name="food" id="kurs" value="Svenska"><label for="Svenska">Svenska</label><br>
<input type="radio" name="kurs" id="kurs" value="Webbutveckling"><label for="Webbutveckling">Webbutveckling</label><br>
<input type="radio" name="kurs" id="kurs" value="Programmering" checked><label for="Programmering">Programmering</label><br>
</fieldset>
<br>
<label for="epost">Epost:</label>
<input type="email" name="epost" id="epost">
<br>
<input type="submit" value="Skicka">
</form>
</body>
</html>