No announcement yet.

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

  • Filter
  • Time
  • Show
Clear All
new posts

  • Icheb
    That problem is easy to solve. Let's say your shoutbox resides in , do a

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

    Leave a comment:

  • Hellcat
    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.

    Leave a comment:

  • 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?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.