-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.php
More file actions
33 lines (32 loc) · 1.2 KB
/
form.php
File metadata and controls
33 lines (32 loc) · 1.2 KB
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
<div class="panel panel-default">
<div class="panel-body">
<form method="post">
<div class="form-group">
<div class="col-md-2">
<select id="type" class="form-control" name='type'><?php if($_SESSION['type']== 'Admin') { ?><option value="Beheerder">Beheerder</option><?php } ?><option value="Gebruiker">Gebruiker</option><option value="Toezichthouder">Toezichthouder</option></select>
</div>
<div class="col-md-2">
<input type='text' class='form-control' name='name'placeholder="Naam"/>
</div>
<div class="col-md-2">
<input type='text' class='form-control' name='email' placeholder="e-mail"/>
</div>
<div class="col-md-2">
<input type='text' class='form-control' name='password'placeholder="Wachtwoord"/>
</div>
<div class="col-md-2">
<input type='text' class='form-control' name='spots' placeholder="Plekken" id="spots"/>
</div>
</div>
<div class="form-group col-md-2">
<input type='submit' value='Voeg toe' class='btn btn-primary addy'/>
</div>
<script>
var type = document.getElementById("type");
if (type.selectedIndex == 2) {
document.getElementById('spots').disabled = true;
};
</script>
</form>
</div>
</div>