-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathformchat.php
59 lines (50 loc) · 1.91 KB
/
formchat.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
<?php
include 'config.php';
$no = $_GET['no'];
$sql = "SELECT * FROM konsul WHERE no = '$no'";
$query = mysqli_query($connect, $sql);
// (mysql_fetch_array/assoc) pengambilan data MySQL menangkap data dari hasil perintah query
$sis = mysqli_fetch_assoc($query);
if(mysqli_num_rows($query) < 1){
die ("gagal");
}
?>
<!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>Form Send Wa</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">
</head>
<body>
<section>
<div class="container">
<br><br>
<h3>Form Send Whatsapp</h3>
<br><br>
<div class="row">
<div class="col-6">
<form action="send.php" method="post" target="_blank">
<div class="form-group">
<label for="name">Name</label>
<input type="text" name="name" class="form-control" placeholder="name@example.com">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" class="form-control" name="email" placeholder="name@example.com">
</div>
<div class="form-group">
<label for="messages">Messages</label>
<textarea class="form-control" name="message" rows="3"></textarea>
</div>
<input type="number" hidden name="no" value="<?php echo $sis['no']?>">
<button type="submit" name="submit" class="btn btn-primary">Send</button>
</form>
</div>
</div>
</div>
</section>
</body>
</html>