Friday, August 9, 2013

PHP: give alert popup then redirect the page

Do something like
header("Location: index.php?Message=" . urlencode($Message));
Then on index.php...
if (isset($_GET['Message'])) {
    print $_GET['Message'];
}
Reference: http://stackoverflow.com/questions/11703854/php-give-alert-popup-then-redirect-the-page

No comments: