[Tutor] Is Python powerful enough for this?

dman dsh8290 at rit.edu
Thu Aug 30 11:43:19 EDT 2001


On Thu, Aug 30, 2001 at 02:03:00PM +0200, A wrote:
| Hi,
| I have some webpages that contain FORMS. Each form has input 
| fields and also some hidden fields. 
| How can I easily get urlencoded string from all these fields
| like
| Key1=Value1&Key2=Value2&Key3=Value3

You're looking to write some CGI scripts that will receive the form
submisison and then process it, right?

See the 'cgi' module, it parses the url string for you and provides
the data as a dictionary.  Really easy to use.

http://www.python.org/doc/current/lib/module-cgi.html

-D




More information about the Python-list mailing list