# Handling multiple form data

**URL:** <https://www.ruby-forum.com/t/handling-multiple-form-data/169195>\
**Category:** Rails\
**Created:** [May 31, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/handling-multiple-form-data/169195 "2009-05-31T13:23:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![charan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@charan](https://www.ruby-forum.com/u/charan)\
**Post date:** [May 31, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/handling-multiple-form-data/169195/1 "2009-05-31T13:23:06Z")

</div>

HI guys

I am using different forms with respective controller,model and  
view.If the user press back button in the browser,after submitting  
the form data.How do we handle such scenario…

chandra sekhar

---

<div class="post-metadata">

**Author:** ![charan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@charan](https://www.ruby-forum.com/u/charan)\
**Post date:** [May 31, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/handling-multiple-form-data/169195/2 "2009-05-31T17:54:20Z")

</div>

If you did a redirect after receiving the posted form, the user will  
be redirected to the form page, it will not re-submit the data.

- 

Maurício Linhares  
[http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)

---

<div class="post-metadata">

**Author:** ![charan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@charan](https://www.ruby-forum.com/u/charan)\
**Post date:** [June 1, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/handling-multiple-form-data/169195/3 "2009-06-01T15:59:24Z")

</div>

thanx for the reply

its not that way

let me explain u…

if the user submits the form (submitted data stored into db) and moves  
to next form ,now the user press back button and again press the  
submit button.???.now the data is stored 2 times in DB…

im planning to handle in such a way that,all the form data to store in  
objects, at the end of all forms the data should be written into DB

chandra sekhar

On May 31, 8:53 pm, Maurício Linhares [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
