-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.php
102 lines (71 loc) · 3.05 KB
/
update.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
96
97
98
99
100
101
102
<?php
include 'conn.php';
if(isset($_POST['done'])){
$id = $_GET['id'];
$name = $_POST['name'];
$gender = $_POST['gender'];
$age = $_POST['age'];
$mobile = $_POST['mobile'];
$father = $_POST['father'];
$mother = $_POST['mother'];
$contact = $_POST['contact'];
$address = $_POST['address'];
$college = $_POST['college'];
$experience = $_POST['experience'];
$skills = $_POST['skills'];
$q = "update form set id='$id', name='$name',gender='$gender',age='$age',mobile='$mobile',father='$father',mother='$mother',contact='$contact', address='$address', college='$college', experience='$experience', skills='$skills' where id=$id";
$query = mysqli_query($con,$q);
header('location:display.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div class="col-lg-6 m-auto">
<form method="post">
<br><br><div class="card">
<div class="card-header bg-dark">
<h1 class="text-white text-center"> Update Operation </h1>
</div><br>
<label> Name: </label>
<input type="text" name="name" class="form-control"> <br>
Gender:-
<input type="radio" id="male" name="gender" value="male">Male
<input type="radio" id="female" name="gender" value="female">Female
<input type="radio" id="other" name="gender" value="other">Other<br>
<label>age</label>
<input type="text" name="age" class="form-control"> <br>
<label>Mobile</label>
<input type="text" name="mobile" class="form-control"> <br>
<label>Father's Name</label>
<input type="text" name="father" class="form-control"> <br>
<label>Mother's Name</label>
<input type="text" name="mother" class="form-control"> <br>
<label>Guardian's Contact</label>
<input type="text" name="contact" class="form-control"> <br>
<label>Address</label>
<textarea type="text" name="address"></textarea> <br>
<label>College</label>
<input type="text" name="college" class="form-control"> <br>
<label>Experience Year</label>
<input type="text" name="experience" class="form-control"> <br>
<label>Skills </label>
<input type="text" name="skills" value="">
<button class="btn btn-success mt-5" type="submit" name="done"> Submit </button><br>
</div>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>