<?php 
echo "<script>
alert('Data insert successfully');
window.location.href='index.php';
</script>";
?>