-
Notifications
You must be signed in to change notification settings - Fork 0
/
insert.php
58 lines (47 loc) · 1.28 KB
/
insert.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
<?php
require('db.php');
// If form submitted, insert values into the database.
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$bloodgr=$_POST['bloodgr'];
$pincode =$_POST['pincode'];
$mbno=$_POST['mbno'];
$email=$_POST['eid'];
if (isset($fname,$lname,$bloodgr,$pincode,$mbno)) {
# code...
$sql = "INSERT into `volunteer` (fname, lname, bloodgr, pincode, mbno, eid) VALUES('$fname', '$lname', '$bloodgr', '$pincode', '$mbno', '$email')";
}
else{
echo "nooooo";
}
$resultCheck=mysqli_query($conn,$sql);
mysqli_close($conn);
?>
<html>
<head><title>Registerform | success</title>
<link rel="stylesheet" href="styles.css">
<style>
.re{
margin:50px 0px 0px 350px;
}
.homer{
color:yellow;
margin:50px 0px 0px 700px;
background-color:rgb(500,30,400);
padding: 10px 15px 10px 15px;
decoration:none;
font-size:30px;
box-sizing:border-box;
border-radius:20px;
transition: 0.5s;
}
.homer:hover{
transform: scale(1.1);
}
</style>
</head>
<body>
<h1 class="re">YOU HAVE REGISTERED SUCCESSFULLY !</h1><br>
<a href="index.php"> <span class="homer" align=right>Home</span></a>
</body>
</html>