Exercise 51. Getting Input from a Browser

ImageVideo: Exercise 51: Getting Input from a Browser

While it’s exciting to see the browser display Hello World!, it’s even more exciting to let the user submit text to your application from a form. In this exercise, we’ll improve our starter web application by using forms and storing information about users into their “sessions.”

How the Web Works

Time for some boring stuff. You need to understand a bit more about how the web works before you can make a form. This description isn’t complete, but it’s accurate and will help you figure out what might be going wrong with your application. Also, creating forms ...

Get Learn Python the Hard Way: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code, Third Edition, Video-Enhanced Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.