• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form is getting submitted when 'Refresh' button on the browser is clicked.

 
Madhu Bompaly
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every one,

I have a form which is getting submitted when I click on the 'Refresh' button the browser,Iam submitting the form using Javascript function form.submit();.
after I submit the from by clicking on submit button,and click on the Refresh button the form is getting is submitted again.
for my submit button I have set input type="button".
can some one please tell me how to correct this issue.
Thanks,
Madhu.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this article and pay particular attention to the Post-Redirect-Get pattern.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic