how to mend it - Fix appliances, electricals, gadgets, cars... Ask for free help
:: home
:: add a question
:: search
:: help
:: most recent
:: unanswered
   Search: Go 
Fixed for free!
Ask Your Question
Popular

These categories may also be of interest ...

Software, FTP Servers

Software, Graphic Design

Software, Instant Messaging

Software, Internet Browsers

Software, Media Players

Full list

... mend, fix, or repair just about anything.

Help someone
  Are you good at fixing things?  

Click here to help

Fault info.
Click here for Ryobi repair information.
First time?

howtomendit.com costs nothing to use and you can ask a question without an account or logging in.

Click here to ask a question.

Answers

Who answers the questions?

Other users of howtomendit.com provide the answers. The more detail and information you provide in your question the easier it is for others to help you.

Search for a fix
How can I fix my
Application Development?
Mend it
How can I repair my Notebook PC?
Categories > Mend Software, Application Development > Question
Q & As - mend, repair, fix Navigate to ...
Software, Application Development (27 other questions)
Related questions - stop, being, twice
Add a question



Mend > Application Development

Question - mend, repair, fix

How can I stop a php form from being processed twice?

I am writing a web site and using PHP and MySQL database. I have developed a form. When this is submitted the browser is pointed to another php page which processes the input and thanks the visitor. I have found a problem. If the visitor refreshes the browser the data will be processed again. How can I ensure that the processing page cannot be run again when the user refreshes their browser?



Ray Wilks
March 2004


There is more help available. Mend - stop, being, twice

To add an answer, click here To add a new question, click here To find all other questions, click here

Answers - mend, repair, fix

David if the user hits their Back Button the form will submit again. How would you stop this happening?

Jon
February 2005

If you have ever used a PHP-based discussion board then you would see how they deal with it, they create an intermediate page which does the saving and then redirect the user from their to the next page.

The intermediate page will usually say something like "Thanks for logging on, you are now being redirected back to the forum".

Of course, if they refreshed on this page then it would do the same double-post, but it is unlikely they will refresh during the second or two that redirection is taking place :)

David Carrington
May 2004

To add an answer, click here    

Add An Answer Form

Add your answer using the form below ...

The question: How can I stop a php form from being processed twice?
Your answer:

(Add your answer here. Try to include as much detail as possible.)
Your name:

(Enter your name as you wish it to be displayed.)
Other questions in this category - Software, Application Development
which software do i require to configure the channels to my t-999 thunderbo?

my receiver requires a software reconfiguire the lost channels now which software is required for my t-999 free to air thunderbolt receiver?...

Click here for how to mend it.
How to zip files?

I have a bulk of files to send but they are too heavy to be sent via e-mail. How can I zip them?...

Click here for the repair.
How to make puzzles?

I know there is a program that can make a puzzle of the words you choose yourself. Can you help me find it?...

Click here for the repair.
how can i update mypsp version?

i have new umd game disk and my psp is asking to update it.if i update the psp, the games which are in the memory card will support further after updating the version?...

Click here for how to mend it.
How to use Logik L22LID628 in USA?

How to use Logik L22LID628 in USA...

Click here for how to mend it.
Buddyspy?

After downloading Buddy Spy, It prompt that Run time error "9" Subscript out of reach. Need help and answers....

Click here for the repair.
How to download JXD firmware update ?

How I can download JXD firmware update...

Click here for how to mend it.
I had TCB.cc toolbar?

I had the TCB.cc toolbar and then had to do a sysytem restore because of conflict with another application (which i have removed). Now when I try to download the following message appears. Could not contact. WISE0 132.dll to ‘C:\DOCUME˜1\GREGMC˜1\LOCALS-1\Temp\GLC.78.tmp’, CRC does not match ...

Click here for how to mend it.
Fix what?
Furnishings, Laminate Flooring - fix/mend/repair/service information
Audio, In-Car Cassette/Radios - fix/mend/repair/service information
Clocks and Watches, Wrist Watches - fix/mend/repair/service information
Help wanted!
Advertisements
Fixed!
Fantastic! I disconnected the battery for awhile as advised.

Ian
Aug 2019


Mend it
Where can I look up my car's radio code?
All appliances!

To mend any household, kitchen, or other electrical appliance start here.

To search for repair advice click here.

To find out how to mend it click here.

Mend it
How can I repair my Kelvinator?
Fault find
Click here to fix Gardenline products.
Advertisements
Important

Attempting repairs can be dangerous.
In many instances work should only be undertaken by a qualified professional.
Ensure you have read our Small Print page before using information supplied via this website.

©  2003 vE
We use Cookies. See our Privacy Policy.