Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. IE loading a page twice, is there a way to fix that?
  2. $_SESSION['sent'] = true;
  3. header('Location: '. rootUrl() .'/#'. $_POST['page']);`
  4.        
  5. if (isset($_SESSION['sent'])) {
  6.     echo '<p>Your message was sent!</p>';
  7. } else {
  8.     // show the message submit form here
  9. }
  10. // fully clear so the user can reload the page and send another message
  11. unset($_SESSION['sent']);