Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit 9022f17

Browse files
committed
post data
1 parent 744d8e2 commit 9022f17

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

frontend/signup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h2>Registrazione</h2>
7575
<div class="form-group">
7676
<label for="confirmPassword" class="col-sm-9 control-label">*Conferma Password</label>
7777
<div class="col-sm-9">
78-
<input type="password" id="confirmPassword" placeholder="Conferma Password" class="form-control" name="ConfirmPassword">
78+
<input type="password" id="confirmPassword" placeholder="Conferma Password" class="form-control" name="confirmPassword">
7979
</div>
8080
</div>
8181
<div class="checkbox mb-9">

frontend/signup.php

+36-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
11
<?php
22

3-
print_r($_POST);
3+
/* signup form data */
4+
$name = $_POST["name"];
5+
$surname = $_POST["surname"];
6+
$email = $_POST["email"];
7+
$birthdate = $_POST["birthdate"];
8+
$birthLocation = $_POST["birthLocation"];
9+
$password = $_POST["password"];
10+
$confirmPassword = $_POST["confirmPassword"];
11+
12+
$phone = "";
13+
if(!empty($_POST["phone"]))
14+
$phone = $_POST["phone"];
15+
$teacher = false;
16+
if(!empty($_POST["teacher"]))
17+
$teacher = true;
18+
$mooc = false;
19+
if(!empty($_POST["mooc"]))
20+
$mooc = true;
21+
$privacy = false;
22+
if(!empty($_POST["privacy"]))
23+
$privacy = true;
24+
$gdpr = false;
25+
if(!empty($_POST["gdpr"]))
26+
$gdpr = true;
27+
28+
29+
// DATABASE INFO:
30+
// Tutti i campi utente, aggiungendo:
31+
// - data di registrazione
32+
// - id utente univoco (utilizzo del token univoco?)
33+
// - token univoco per l'attivazione dell'account
34+
// - stato utente: richiesta di registrazione inviata | richiesta di registrazione confermata in seguito a pagamento
35+
// - stato tesseramento annuale: pagato | non pagato
36+
// - data pagamento
37+
// - valore quota pagata
38+
// Bisognerà tenere conto in futuro anche dello storico dei pagamenti

0 commit comments

Comments
 (0)