Security & ScamsWeb Security

Little Bobby Tables

A name typed into a form can delete a whole database

A school's sign-up form asks for a name, and one name makes every student record vanish. How can typing a name delete anything?

You'll find out

  • How programs glue text into commands
  • Why an apostrophe can be dangerous
  • The habit that makes it harmless

Why it matters

Every login box and search bar talks to a database. One habit decides whether what you type stays just text.

About 4 min7 interactive slides · 5 questionsLesson 303 · Zone 34

Play this lesson

Free to play in your browser or on iPhone

More in this zone

  1. 298Computational GeometryThe Nearest-Café MapDivide a city by which café is closest and you get Voronoi cells
  2. 299AerodynamicsWhy Golf Balls Have DimplesDimples help a golf ball fly much farther
  3. 300StatisticsHow a Poll of 1,000 Speaks for MillionsA good spoonful tells you about the whole pot
  4. 301StatisticsThe Poll With 2 Million Answers That Got It WrongIn 1936 a huge survey predicted the wrong US president
  5. 302FeedbackThe Microphone SquealSound chasing itself in a loop screams
  6. 304Communication HistoryWhat Hath God WroughtThe first long-distance telegraph message, in 1844
  7. 305Pattern RecognitionDrawing the LineClassifiers draw invisible boundaries between kinds of things
  8. 306Visual IllusionsThe Checker Shadow IllusionTwo squares are exactly the same gray