Commit 553ff577 by Mei Romauli Sagala

edit

parent 09efcdbd
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
$comment = $_POST['comment']; $comment = $_POST['comment'];
} }
$query = "INSERT INTO komentar VALUES('','$nama','$comment', '$email', '$hp')"; $query = "INSERT INTO komentar VALUES('','$nama','$comment', '$email', '$hp')";
if($query){
echo "<script> window.alert('Terimakasih Telah Memberikan Kritik dan Saran!')";
}
$input = mysqli_query($koneksi, $query) or die(mysqli_error($GLOBALS["___mysqli_ston"])); $input = mysqli_query($koneksi, $query) or die(mysqli_error($GLOBALS["___mysqli_ston"]));
if($input){ if($input){
......
...@@ -21,7 +21,7 @@ require_once(dirname(__FILE__).'/common/header.php'); ...@@ -21,7 +21,7 @@ require_once(dirname(__FILE__).'/common/header.php');
<div class="col-md-4 inputGroupContainer"> <div class="col-md-4 inputGroupContainer">
<div class="input-group"> <div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-earphone"></i></span> <span class="input-group-addon"><i class="glyphicon glyphicon-earphone"></i></span>
<input name="phone" required placeholder="Nomor Handphone" class="form-control" type="text"> <input name="phone" required placeholder="Nomor Handphone" class="form-control" type="phone">
</div> </div>
</div> </div>
</div> </div>
...@@ -37,7 +37,7 @@ require_once(dirname(__FILE__).'/common/header.php'); ...@@ -37,7 +37,7 @@ require_once(dirname(__FILE__).'/common/header.php');
<div class="form-group col-md-8" style="margin-top: 20px;margin-left: 15px;"> <div class="form-group col-md-8" style="margin-top: 20px;margin-left: 15px;">
<label for="comment" required >Kritik Dan Saran:</label></div> <label for="comment" required >Kritik Dan Saran:</label></div>
<textarea class="form-control" rows="5" id="comment" name="comment" placeholder="Masukkan Ulasan Anda"></textarea><br> <textarea class="form-control" rows="5" id="comment" name="comment" placeholder="Masukkan Ulasan Anda"></textarea><br>
<button type="submit" class="btn btn-primary" name="kirim"> Kirim <span class="glyphicon glyphicon-send"></span></button> <button type="submit" onclick="window.alert('Terimakasih Telah Memberikan Kritik dan Saran!');" class="btn btn-primary" name="kirim"> Kirim <span class="glyphicon glyphicon-send"></span></button>
&nbsp; &nbsp;
</fieldset> </fieldset>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment