Fix · Forms and email
The form sends twice (two emails or two orders)
What you may see
- Every message arrives twice
- Customers click twice because nothing seems to happen
Most likely cause
The button can be pressed again before the first request finishes, or the page sends and the server also resends.
Check first (about two minutes)
- Check the server log: two requests or one request with two emails?
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Disable the button and show a "Sending..." state from the first press until the answer.
- Add a one-time id for each submit that the server remembers, so a repeated request does nothing new.
- Check the code does not call the sending function twice.
Do not do this
- Do not rely only on disabling the button: the server must protect itself.
- Do not delete real orders to clean up without checking each.