Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Data stored without notice  RSS feed

 
Alex Mann
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,
I have created insert form (form.jsp & b.jsp)
form.jsp(let user enter data and submit)
b.jsp(message user whether it stored successfully or not)

All the data enter in text field can stored in MYSQL DB when click on "submit" button. Then b.jsp will come out and msg user whether it stored successful or not.
The problem is during b.jsp, i click "back" button(IE) then "forward"(IE). It store the same record again in DB unnoticely. I didnt even click the "submit" button.

Can give me some idea?


Thank You,
Alex
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search this forum (and Google) for the "post-redirect-get" pattern.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is also covered in this article.
 
Alex Mann
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,
I already looking at it but still don't quite understand it.


Thank You
Alex
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I could repeat the whole article, but it might be better if you let us know exactly what you did not understand.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!