This repository was archived by the owner on Nov 23, 2024. It is now read-only.
File tree 2 files changed +37
-2
lines changed
2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ <h2>Registrazione</h2>
75
75
< div class ="form-group ">
76
76
< label for ="confirmPassword " class ="col-sm-9 control-label "> *Conferma Password</ label >
77
77
< 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 ">
79
79
</ div >
80
80
</ div >
81
81
< div class ="checkbox mb-9 ">
Original file line number Diff line number Diff line change 1
1
<?php
2
2
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
You can’t perform that action at this time.
0 commit comments