Announcement

Collapse
No announcement yet.

error with my shoutbox, if you refresh it re-posts your msg

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • error with my shoutbox, if you refresh it re-posts your msg

    Im having this problem with my shoutbox I just finnished, when you hit refresh (after posting a message) it comes up with a box "Cannot refresh without re-sending information"

    is there a line of code that kills this. Sessions perhaps?

  • #2
    If you submitted a form and then hit F5 (or any reload trigger) the Browser will send all data AGAIN (to ensure you get the same result as before).
    The Broeser is just telling you that, and as it subits your last data again, your last entry is added once more to the shout box.

    AFAIK there is no way of avoiding that.

    Just navigate to the shoutbox again, avoiding "reload".

    Reloading dynamic pages, that require a form to be filled out before is a bad plan anyway IMHO.
    ::[ Skill-Club's Forum ]::
    .

    Comment


    • #3
      That problem is easy to solve. Let's say your shoutbox resides in www.domain.com/forum/shoutbox.php , do a

      PHP Code:
      header('LOCATION: /forum/shoutbox.php'); 
      after you insert the "shout" into the db.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X