Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!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