html forms, dicts and lists

Kai Keliikuli kai at keliikuli.com
Wed Jul 31 21:33:42 EDT 2002


hi,
I'm wanting to do more with html forms and their processing
than I'm able to using the cgi module, but I've had no luck
RTFMing or googling.  I want to interpret the following html
form inputs like so

form: <input type="text" name = "d['a']['b']" value="foo">

interpreted: d = {'a':{'b':'foo'}}


form: <input type="text" name = "x[0][0]" value="bar">
interpreted: x = [['bar']]

Does anyone know where I can find something like this.
thanks,
kai



More information about the Python-list mailing list