Created
March 13, 2015 16:14
-
-
Save AndreasJacobsen/8aa2b31dfe4fb28b59ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head > | |
<meta charset="UTF-8"> | |
<title>Oblig 2</title> | |
</head> | |
<body> | |
<form action="" method="post"> | |
<input type="submit" name="publikum" value="Publikum"/> | |
<input type="submit" name="deltaker" value="Deltaker"/> | |
</form> | |
<?php | |
if(isset($_POST["publikum"])) | |
{ | |
echo '<form action="" method="post"> | |
Fornanvn:<br> | |
<input type="text" name="firstname" value=""> | |
<br> | |
Etternavn:<br> | |
<input type="text" name="lastname" value=""> | |
<br> | |
Adresse:<br> | |
<input type="text" name="adresse" value=""> | |
<br> | |
Telefonnr:<br> | |
<input type="text" name="telefonnr" value=""> | |
<br><br> | |
Biletttype: | |
<select> | |
<option value="barn">Barn</option> | |
<option value="ungdom">Ungdom</option> | |
<option value="voksen">Voksen</option> | |
<option value="senior">Senior</option> | |
</select> | |
<br> | |
Øvelse: | |
<select> | |
<option value="langrenn">Langrenn</option> | |
<option value="skiskyting">Skiskyting</option> | |
<option value="aking">Aking</option> | |
<option value="bobsleigh">Bobsleigh</option> | |
</select> | |
<br> | |
<input type="submit" value="publikum" > | |
</form>'; | |
} | |
if(isset($_POST["deltaker"])) { | |
echo '<form action="sideforsøk2.php" method="post"> | |
Fornanvn:<br> | |
<input type="text" name="firstname" value=""> | |
<br> | |
Etternavn:<br> | |
<input type="text" name="surname" value=""> | |
<br> | |
Nasjonalitet:<br> | |
<input type="text" name="nationality" value=""> | |
<br> | |
<select name="droppliste"> | |
<option>Langrenn</option> | |
<option>Skiskyting</option> | |
<option>Aking</option> | |
<option>Bobsleigh</option> | |
</select> | |
<br> | |
<input type="submit" value="Bekreft" name="next"> | |
</form>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment