Show sourcecode
The following files exists in this folder. Click to view.
cookies.php
formular.php
fragetest3.php
funktioner.php
grunder.php
include/
klasser.php
ovn_cookies1.php
ovn_cookies2.php
ovn_form1.php
ovn_form2.php
ovn_form3.php
ovn_form4.php
ovn_form6.php
ovn_funk1.php
ovn_funk2.php
ovn_funk3.php
ovn_funk4.php
ovn_funk5.php
ovn_grn1.php
ovn_grn2.php
ovn_grn3a.php
ovn_grn3b.php
ovn_include1.php
ovn_klasser1.php
ovn_string1.php
ovn_string2.php
ovn_string3.php
ovn_stringsvar1.php
ovn_stringsvar2.php
ovn_stringsvar3.php
sida1.php
string.php
ovn_form4.php
39 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html>
<body>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$frnamn = $_POST["frnamn"];
$efternamn = $_POST["efternamn"];
$klass = $_POST["klass"];
$mat = $_POST["mat"];
$kurs = $_POST["kurs"];
echo "Hej $frnamn $efternamn i $klass<br>";
echo "Din favoriträtt är $mat <br>";
echo "Din favoritkurs är $kurs<br>";
}
?>
<form method="post" action="">
Förnamn: <input type="text" name="frnamn">
Efternamn: <input type="text" name="efternamn">
Klass: <input type="text" name="klass"><br><br>
Favoriträtt: <select name= "mat">
<option value="Subway footlong">Subway footlong</option>
<option value="Bamses pizza">Bamses pizza</option>
<option value="Choklad">Choklad</option>
<option value="Kebab">Kebab</option>
<option value="Sand">Sand</option>
<option value="Hundmat">Hundmat</option>
<option value="Råttgift">Råttgift</option>
</select> <br><br>
<input type="radio" name="kurs" value="Kemi"><label for="Kemi">Kemi</label><br>
<input type="radio" name="kurs" value="Religion"><label for="Religion">Religion</label> <br>
<input type="radio" name="kurs" value="Webbserverprogrammering"><label for="Webbserverprogrammering">Webbserverprogrammering</label><br><br>
<input type="submit" value="Skicka">
</form>
</body>
</html>