The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Recover form fields in comments when "Back button" is pushed after error (3 posts)

  1. kish
    Posted 9 years ago #

    Hello all. I have noticed that if you don't fill any field of the comment form and you hit the back button of the browser, the message dissapear. This is a problem if you have typed a long comment and you forget to type the email or the name.

    How can I store that variable in wp-comment-post.php so the message is there after pushing back button in browser?

    Thanks in advanced.

  2. ladydelaluna
    Posted 9 years ago #

    I'm quite sure that's a browser/caching thing... as it happens to me on just about every site I use, though it's intermittent... sometimes it's there, other times it's not, but it doesn't have anything to do with the site specifically...

  3. kish
    Posted 9 years ago #

    I don't think that it is a browser/caching problem as in the same browser/computer it occurs in most of sites but not in mine. Other computers I've tested with (friends, work, laptop...), the behaviour is the same.

    I am sure that it is some configuration issue. In fact, I got the solution writing the variable before displaying the error ($comment_content = 'comment' or something). But the empty field check did not work...

Topic Closed

This topic has been closed to new replies.

About this Topic