CGI script structure
Check form fields
- use cgi.FieldStorage class to parse query
- takes care of decoding, handles GET and POST
- "foo=ab+cd%21ef&bar=spam" -->{'foo': 'ab cd!ef', 'bar': 'spam'} # (well, actually, ...)
Perform action
- this is up to you!
- database interfaces available
Generate HTTP + HTML output
- print statements are simplest
- template solutions available