# Submit a form vs refresh a form

**URL:** <https://www.ruby-forum.com/t/submit-a-form-vs-refresh-a-form/188645>\
**Category:** Rails\
**Created:** [May 15, 2010, 11:56am UTC](https://www.ruby-forum.com/t/submit-a-form-vs-refresh-a-form/188645 "2010-05-15T11:56:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soesan01](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Post date:** [May 15, 2010, 11:56am UTC](https://www.ruby-forum.com/t/submit-a-form-vs-refresh-a-form/188645/1 "2010-05-15T11:56:42Z")

</div>

Hi there,

I am new with rails and html stuff.  
I have difficulty to understand the differences if I submit a form and  
refresh the same form, are they doing the same action?

For example,  
I bought some books and then I submit a form of payment. If I refresh it  
again, would it resubmit a form of payment again? So user will get  
charge  
twice?  
How I can avoid user to resubmit a page with refresh? or how my code can  
capture what is user doing? refresh the page or submit a form?

Thanks,  
Yudi S.
