- IE loading a page twice, is there a way to fix that?
- $_SESSION['sent'] = true;
- header('Location: '. rootUrl() .'/#'. $_POST['page']);`
- if (isset($_SESSION['sent'])) {
- echo '<p>Your message was sent!</p>';
- } else {
- // show the message submit form here
- }
- // fully clear so the user can reload the page and send another message
- unset($_SESSION['sent']);