-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.php
56 lines (54 loc) · 3.05 KB
/
contact.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
<?php
require_once('layout/header.php');
if(!empty($_POST)) {
$first_name = getPost('first_name');
$last_name = getPost('last_name');
$email = getPost('email');
$phone_number = getPost('phone');
$subject_name = getPost('subject_name');
$note = getPost('note');
$created_at = $updated_at = date('Y-m-d H:i:s');
$sql = "insert into FeedBack(firstname, lastname, email, phone_number, subject_name, note, status, created_at, updated_at) values('$first_name', '$last_name', '$email', '$phone_number', '$subject_name', '$note', 0, '$created_at', '$updated_at')";
excute($sql);
}
?>
<div class="container" style="margin-top: 20px; margin-bottom: 20px;">
<form method="post">
<div class="row">
<div class="col-md-6" style="margin-top: 40px">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<input required="true" type="text" class="form-control" id="usr" name="first_name" placeholder="Nhập tên">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input required="true" type="text" class="form-control" id="usr" name="last_name" placeholder="Nhập họ">
</div>
</div>
</div>
<div class="form-group">
<input required="true" type="email" class="form-control" id="email" name="email" placeholder="Nhập email">
</div>
<div class="form-group">
<input required="true" type="tel" class="form-control" id="phone" name="phone" placeholder="Nhập sđt">
</div>
<div class="form-group">
<input required="true" type="text" class="form-control" id="subject_name" name="subject_name" placeholder="Nhập chủ đề">
</div>
<div class="form-group">
<label for="pwd">Nội dung:</label>
<textarea class="form-control" rows="3" name="note"></textarea>
</div>
<a href="checkout.php"><button class="btn btn-success" style="border-radius: 0px; font-size: 26px; width: 100%;">GỬI PHẢN HỒI</button></a>
</div>
<div class="col-md-6">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3723.904626902814!2d105.78332211488359!3d21.03650178599419!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3135ab358396c7a7%3A0x8c0029a430be510!2zWHXDom4gVGjhu6d5LCBD4bqndSBHaeG6pXksIEjDoCBO4buZaSwgVmnhu4d0IE5hbQ!5e0!3m2!1svi!2s!4v1635875133085!5m2!1svi!2s" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy"></iframe>
</div>
</div>
</form>
</div>
<?php
require_once('layout/footer.php');
?>