db.php
_________________________________________________________________
<?php
$query=mysql_query("INSERT INTO employee VALUES ('$id','$name')");if($query) { header('location:index.php?msg');}?>
_________________________________________________________________
index.php
_________________________________________________________________
<?php if(isset($_GET['msg'])) { $comp = $_GET['msg']; ?>
<div class="alert alert-success">
Thank you, this is message by GET id
</div>
<?php } ?>
_________________________________________________________________
Comments
Post a Comment