-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_borrower1.php
95 lines (89 loc) · 2.56 KB
/
manage_borrower1.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php include 'db_connect.php' ?>
<?php
if(isset($_GET['id'])){
$qry = $conn->query("SELECT * FROM roles where roleID=".$_GET['id']);
foreach($qry->fetch_array() as $k => $val){
$$k = $val;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
<link rel="stylesheet" href="manage_borrower.css">
</head>
<body>
<div class="wrapper">
<div class="title">
Registration Form
</div>
<form action="signup.php" method="POST">
<div class="form">
<div class="inputfield">
<label>First Name</label>
<input type="text" class="input" name="firstname">
</div>
<div class="inputfield">
<label>Username</label>
<input type="text" class="input" name="username">
</div>
<div class="inputfield">
<label>Password</label>
<input type="password" class="input" name="password">
</div>
<div class="inputfield">
<label>Confirm Password</label>
<input type="password" class="input">
</div>
<div class="inputfield">
<label>Address</label>
<input type="text" class="input" name="address">
</div>
<div class="inputfield">
<label>Phone Number</label>
<input type="text" class="input" name="contact_no">
</div>
<div class="inputfield">
<label>Email</label>
<input type="text" class="input" name="email">
</div>
<div class="inputfield">
<label>Tax ID</label>
<input type="text" class="input" name="tax_id">
</div>
<div class="inputfield terms">
<label class="check">
<input type="checkbox">
<span class="checkmark"></span>
</label>
<p>Agreed to terms and conditions</p>
</div>
<div class="inputfield">
<input type="submit" value="Register" class="btn" name="submit">
</div>
</div>
</div>
</body>
</html>
<script>
$('#manage-borrower').submit(function(e){
e.preventDefault()
start_load()
$.ajax({
url:'ajax.php?action=save_borrower',
method:'POST',
data:$(this).serialize(),
success:function(resp){
if(resp == 1){
alert_toast("Borrower data successfully saved.","success");
setTimeout(function(e){
location.reload()
},1500)
}
}
})
})
</script>