Jump to content

What happens with Form Double-Submission??


doubledee
 Share

Recommended Posts

If I have a standard HTML form in my PHP script and the User submits the form - which resubmits to itself for processing - and then the User hits the "Back" button and then the "Forward" button, why does the Form and its data get re-submitted?!

 

What mechanics are exactly happening?

 

I had a "Submit Payment" page that was doing that and so people would get charged twice and that is obviously a big problem.

 

Please help me understand what causes that issue and different ways to fix it.

 

Thanks,

 

 

Debbie

 

Link to comment
Share on other sites

HI,

 

Please let me know all the database operations are done is same single page? ie, design and database operations are done in same php page?

 

I recommend you to separate these tow in different pages one for design and another for database operations.

 

When user submits the page, the data should be posted to DB operation page and after completing the DB process redirect your page to another page that contains success message.

 

Thanks.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.