In plain words
A form gathers what a person types or picks, checks it, and sends it to the server, which checks it again and saves it.
Where you see it
QuickBite's delivery address form, or Guildhall's profile editor. You press Save, the button greys out, and either a confirmation appears or the fields turn red.
What goes wrong
- Losing what someone typed
A long bio kept only in state vanishes if the tab reloads or the form resets after a failed save. Keep the text on screen after an error, and save drafts of long forms in the browser.
- Checking only in the browser
Attributes like required and maxLength only stop honest users. Anyone can send the request directly, so the server must check everything again.
- Double submits
If the button stays active while saving, an impatient second tap places a second QuickBite order. Disable it until the reply arrives.
What to tell your agent
Quick check
Sign in to earn +10 XP for itA customer was charged twice for one QuickBite order, two seconds apart. How did that happen?