-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction_signup.php
More file actions
47 lines (42 loc) · 1.07 KB
/
Copy pathaction_signup.php
File metadata and controls
47 lines (42 loc) · 1.07 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
require_once 'facade.php';
//echo $_POST["userID"];
class Users{
private $ID;
private $password;
private $designation;
#constructor
function __construct() {
$this->ID= "";
$this->password= "";
$this->designation= "";
}
function set_ID($id) {
$this->ID = $id;
}
function set_password($p) {
$this->password = $p;
}
function set_designation($d) {
$this->designation = $d;
}
function get_ID() {
return $this->ID;
}
function get_password() {
return $this->password;
}
function get_designation() {
return $this->designation;
}
}
$db_layer = new Technical_layer();
$user = new Users();
$user->set_ID($_POST["ID"]); //$_POST["userID"]
$user->set_password($_POST["designation"]); //$_POST["designation"]
$user->set_designation($_POST["password"]); //$_POST["password"]
// $user->get_ID();
// $user->get_designation();
// $user->get_password();
$db_layer->add_user_ToDB($user->get_ID(), $user->get_designation(), $user->get_password() )
?>