~/talk

The Art of Form Validation

Talkat Laracon EU 2019 · 2019-08-28..08-30· [php, testing]
name:Caneco
links:none on file
slides:none on file

Client-side validation reduces server load by catching bad input early and giving instant feedback while server-side validation still enforces uniqueness and domain rules; examples include HTML5 attributes, JavaScript libraries like v-validate plus V-mask for phone masking, Laravel’s DNS email checks combined with the bail rule to avoid extra work, and returning a machine-friendly error array (even using a playful 418 status code) so frontend code parses issues easily; also note keyboard hints via inputmode and autofocus tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 2:56Validation 101
  3. 5:45Validators
  4. 13:24Validation Examples
  5. 13:51Email Validation
  6. 16:36Ajax Validation
  7. 17:42Phone Validation
  8. 21:03Autofocus
  9. 22:47Input Types
  10. 24:41Input Mode
  11. 25:38Typing Mode
  12. 26:07Floating Labels
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.