-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiscrizioneUtente.php
65 lines (63 loc) · 1.88 KB
/
iscrizioneUtente.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
55
56
57
58
59
60
61
62
63
64
65
<?php
include("include/databaseConnection.php");
$sql = "SELECT * FROM citta";
$result = $mysqli->query($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Iscrizione utente</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<h1>Iscrizione Utente</h1>
<?php
include "include/mainMenu.php";
?>
<form action="action/addUtente.php" method="post">
<table>
<tr>
<td><label for="nome">Nome</label></td>
<td><input type="text" name="nome" id="nome"></td>
</tr>
<tr>
<td><label for="cognome">Cognome</label></td>
<td><input type="text" name="cognome" id="cognome"></td>
</tr>
<tr>
<td><label for="codiceFiscale">Codice Fiscale</label></td>
<td><input type="text" name="codiceFiscale" id="codiceFiscale"></td>
</tr>
<tr>
<td><label for="dataNascita">Data di Nascita</label></td>
<td><input type="date" name="dataNascita" id="dataNascita"></td>
</tr>
<tr>
<td colspan="2">RESIDENZA</td>
</tr>
<tr>
<td><label for="via">Via/Strada</label></td>
<td><input type="text" name="via" id="via"></td>
</tr>
<tr>
<td><label for="citta">Città</label></td>
<td>
<select name="citta" id="citta">
<?php
while ($riga = $result->fetch_assoc()) {
echo '<option value="'.$riga['idCitta'].'">'.$riga['nomeCitta'].'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit">
</td>
</tr>
</table>
</form>
</body>
</html>