This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathform.support.php
54 lines (45 loc) · 1.53 KB
/
form.support.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
51
52
53
54
<?php
/*
[DESCRIPTION]
The basic form of the support.
[INFO]
Author: Stefan
Date: 14-10-2019
*/
?>
<form action="/support.php" method="post">
<p>Naam: * </p>
<input type="text" name="naam" required>
<p>E-mail: *</p>
<input type="text" name="mail" required>
<p>Waarom wilt u contact opnemen: </p>
<select name="onderwerp">
<option value="login">Log-in problemen</option>
<option value="login">Gebanned Account</option>
<option value="upload">Upload problemen</option>
<option value="vraag">Vragen</option>
<option value="overig">Overig</option>
</select>
<p>Selecteer uw school</p>
<select name="school">
<?php
// Query voor alle schoolnamen, en vervolgens ze in een dropdown zetten
$sql = "SELECT schoolnaam s FROM school ORDER by 1;";
$result = $dbConnection->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<option value='" . $row["s"]. "'>" . $row["s"] . "</option>";
}
} else {
echo "0 results";
}
?>
</select>
<p>Graag een korte beschrijving: * </p>
<textarea name="beschrijving" rows="4" cols="22" maxlength="500" required> </textarea>
<?php echo recaptchaform();?>
<br>
<input class="btn btn-primary" type="submit" value="Submit">
<table>
</form>