What is the right behavior? Going back to the page where the html form is? If so, refresh does look like doing the job. You may want to handle this in the error page with a small script such as history.back() (double check this. I am like Leo you know, no memory!)