Created
November 19, 2018 08:22
-
-
Save ErMandeep/6faea4751b7f388c94651dd811933dc0 to your computer and use it in GitHub Desktop.
display alert message after redirecting page php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Location: vendor-dashboard-listing.php?success=1'); | |
?> | |
// after this paste this code on that page where you have to displace success bootstrap alert message | |
<?php | |
if ( isset($_GET['success']) && $_GET['success'] == 1 ) | |
{ | |
echo | |
"<div class='alert alert-success alert-dismissible'> | |
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button> | |
<h4><i class='icon fa fa-check'></i> Alert!</h4> | |
Success alert preview. This alert is dismissable. | |
</div>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment