Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ErMandeep/6faea4751b7f388c94651dd811933dc0 to your computer and use it in GitHub Desktop.
Save ErMandeep/6faea4751b7f388c94651dd811933dc0 to your computer and use it in GitHub Desktop.
display alert message after redirecting page php
<?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'>&times;</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