-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_maken.php
50 lines (49 loc) · 1.72 KB
/
account_maken.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
session_start();
if(isset($_SESSION["loggedin"])) {
header("Location: ../kanaal.php");
}
require('php/database.php');
//query om de categorien te vinden in de database
$query = "SELECT * FROM `categorie`";
//maak een resultaat door te verbinden met de database
$result = $conn->query($query);
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<?php require_once("components/head.php"); ?>
<title>Account Maken</title>
</head>
<body>
<?php require("components/navigation.php");?>
<form action="php/account_maken_verwerk.php" method="POST" enctype="multipart/form-data">
<label>Username:<label>
<input type="text" required name="Naam"><br>
<lable>Email:</label>
<input type="text" name="Email" required><br>
<label>Password:</label>
<input type="password" required name="password"><br>
<label>Categorie:</label><select name="categorie">
<option selected disabled>-- Select here --</option>
<?php
foreach($result as $catagorie)
{
echo "<option value='".$catagorie['Categorie_ID']."'>";
echo $catagorie['Naam'];
echo "</option>";
}
?>
</select><br>
<label>Profile photo</label><input type="file" name="profiel"><br>
<input type="submit" name="accountMaken" value="Sign Up">
<input type="submit" onclick="window.history.back(); return;" value="Cancel">
<?php
require('components/scripts.php');
?>
</form>
</body>
</html>