-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.html
67 lines (60 loc) · 2.16 KB
/
edit.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mini age Directory</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-2.2.4.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand">
<b>UPDATE YOUR PROFILE</b>
</a>
</div>
</nav>
<br>
<div class="container col-md-11">
<a class="btn btn-default" href="personal-profile.php">Back</a>
</div>
<br>
<br>
<div class="container col-lg-6">
<form id="formupdate" action="insertupdate.php" method="post">
<div class="form-group">
<label>Name:</label>
<input type="text" name="fname" class="form-control" placeholder="eg. Saket Suraj">
</div>
<div class="form-group">
<label>Age:</label>
<input type="text" name="age" class="form-control" placeholder="eg. 50">
</div>
<div class="form-group">
<label>About me:</label>
<input type="text" name="description" class="form-control" placeholder="eg. Write about you">
</div>
<input type="submit" name="submit" value="Update" class="btn btn-success" id="submit">
</form>
</div>
<script type="text/javascript">
$(document).ready(function () {
var form = $('#formupdate');
$('#submit').click(function () {
$.ajax({
url: form.attr("action"),
type: 'post',
data: $("#formupdate input").serialize(),
success: function (data) {
console.log(data);
}
});
});
});
</script>
</body>
</html>