/
tt_persons_index.html
37 lines (36 loc) · 1.05 KB
/
tt_persons_index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="../css/bootstrap.min.css" rel="stylesheet">
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery-3.2.1.min.js"></script>
<script>
$( document ).ready(function() {
personsRequest("displayList");
});
// Submit a request to the persons table.
function personsRequest(action, id) {
$.post(
"index.php",
"table=" + "persons" +
"&action=" + action +
"&id=" + id +
"&name=" + $("#name").val() +
"&email=" + $("#email").val() +
"&mobile=" + $("#mobile").val()
).done(function( msg ) {
$("#content").html( msg );
});
}
</script>
<style>
.btn {
width: 75px;
}
</style>
</head>
<body>
<div id="content"></div>
</body>
</html>