Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Contact Us -->
- <?php
- include 'include/conn.php';
- $id_contact=$_REQUEST[id_contact];
- if (isset($_POST['kirim'])) {
- $nama=$_POST['nama'];
- $email=$_POST['email'];
- $subjek=$_POST['subjek'];
- $komen=$_POST['komen'];
- $query=mysql_query("INSERT INTO tbl_contact(id_contact,nama,email,subjek,pesan) VALUES ('$id_contact',$nama','$email','$subjek','$komen')");
- echo "<script> document.location.href='home.php?link=contact'; </script>";
- }
- ?>
- <div class="contact-us container">
- <form method="POST" action="">
- <input type="text" class="form-control" placeholder="Nama Anda" style="width:300px;" name="nama"/><br>
- <input type="email" class="form-control" placeholder="E-mail Anda" style="width:300px;" name="email"/><br>
- <input type="text" class="form-control" placeholder="subjek " style="width:300px;" name="subjek"/><br>
- <textarea type="text" class="form-control" placeholder="Komentar Anda" style="width:400px;min-height:200px;" name="komen"></textarea><br>
- <input class="btn btn-lg btn-primary btn-block" type="submit" value="Kirim" name='kirim' style="width:300px;"/>
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment