Quoting Vicki Stanfield <[EMAIL PROTECTED]>:

> I need something more like this:
> 
> First Name: Vicki
> Last Name: Stanfield
> etc.....

Instead of just printing form, try this:

for key in form:
    print '%s: %s' % (key, form[key].value)

Basically, a FieldStorage object is organised as a dictionary, where the keys
are the names of the HTML form elements, and the values are MiniFieldStorage
objects.  To get the actual form data, you look at the .value attribute.

-- 
John.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to