-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.php
199 lines (135 loc) · 6.58 KB
/
view.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Sheet</title>
<!-- <link rel="stylesheet" href="css/bootstrap.css"> -->
<!-- <link rel="stylesheet" href="css/bootstrap.min.css"> -->
<!-- <script src="js/bootstrap.bundle.js"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous">
</script> -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- <script src="js/bootstrap.js"></script> -->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="laptopmode.css">
<link rel="stylesheet" href="tabletmode.css">
<link rel="stylesheet" href="mobilemode.css">
<link rel="stylesheet" href="laptop1380pxless.css">
<script src="app.js"></script>
<link rel="icon" type="image/x-icon" href="img/profile_photo.jpeg">
<script src="https://kit.fontawesome.com/b90099deb6.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="jquery/jquery-3.6.1.min.js"></script>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"
integrity="sha512-tS3S5qG0BlhnQROyJXvNjeEM4UpMXHrQfTGmbQ1gKmelCxlSEBUaxhRBj/EFTzpbP4RVSrpEikbmdJobCvhE3g=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css"
integrity="sha512-sMXtMNL1zRzolHYKEujM2AqCLUR9F2C4/05cdbxjjLSRvMQIciEPCQZo++nk7go3BtSuK9kfa/s+a4f4i5pLkw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"
integrity="sha512-bPs7Ae6pVvhOSiIcyUClR7/q2OAsRiovw4vAkX+zJbw3ShAeeqezq50RIIcIURq7Oa20rW2n2q+fyXBNcU9lrw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- fancybox -->
<link rel='stylesheet prefetch'
href='https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.css'>
<!-- magnific-popup -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css" />
<!-- Mixitup -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/mixitup/3.2.2/mixitup.min.js'></script>
<!-- fancybox -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js'>
</script>
<!-- Fancybox js -->
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0.0/jquery.counterup.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.js"></script> -->
<style>
form input {
width: 100%;
margin-bottom: 30px;
padding: 10px 15px 10px 15px !important;
}
form textarea {
width: 100%;
margin-bottom: 30px;
}
body {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
}
form input::placeholder {
font-family: 'poppins', sans-serif;
font-size: 16px;
color: rgba(180, 180, 180);
font-weight: 400;
}
form textarea::placeholder {
font-family: 'poppins', sans-serif;
font-size: 16px;
color: rgba(180, 180, 180);
padding-top: 10px;
padding-bottom: 10px;
font-weight: 400;
}
</style>
</head>
<body>
<?php
include('conn.php');
$ids = $_GET['id'];
$showquery = "select * from gautamcontactinfo where id={$ids}";
$showdata = mysqli_query($conn,$showquery);
$arrdata = mysqli_fetch_array($showdata);
if(isset($_POST['send']))
{
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['tell'];
$sql = "INSERT INTO gautamcontactinfo(Name, Email, Message)
VALUES ('".$_POST["name"]."','".$_POST["email"]."','".$_POST["tell"]."')";
$result = mysqli_query($conn,$sql);
echo"<script>alert('Our Team Will Contact You Soon')</script>";
echo"<script>window.location='index.php'</script>";
}
?>
<form action="" method="POST" class="p-3">
<!-- <p class="send_note">Send us a Note</p> -->
<div class="row">
<div class="col-12 col-lg-6">
<input class="form-control" type="text" name="name" id="" placeholder="Name"
value="<?php echo $arrdata['Name']; ?>">
</div>
<div class="col-12 col-lg-6">
<input class="form-control" type="email" name="email" id="" placeholder="Email"
value="<?php echo $arrdata['Email']; ?>">
</div>
</div>
<textarea class="form-control" name="tell" id="" cols="30" rows="5"
placeholder="Tell us more about yourself........."><?php echo $arrdata['Message']; ?></textarea>
<!-- <input type="button" class="send_msg_button" value="Send message" name="send"> -->
<!-- <button type="submit" class="btn btn-primary send_msg_button" name="send">Update</button> -->
<!-- <a href="display.php">Check form</a> -->
</form>
</body>
</html>