Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Sessão
- session_start(); //mesnagens de erro e de acerto
- if (isset($_SESSION['mensagem'])) : ?>
- <script>
- // carregar funcao apos a pagina carregar
- window.onload = function() {
- M.toast({
- html: '<?php echo $_SESSION['mensagem']; ?> '
- });
- };
- </script>
- <?php
- endif;
- session_unset();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement