[Tutor] Is Python powerful enough for this?

Rob uselesspython@yahoo.com
Thu, 30 Aug 2001 10:59:24 -0500


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
> 
> For example:
> I have a following web page
> <html>
> 
> <head>
> </head>
> <body>
> <form method="POST" action="c.cgi">
>   <p><input type="text" name="T1" size="20"></p>
>   <p><input type="checkbox" name="C1" value="ON"></p>
>   <p><textarea rows="2" name="S1" cols="20"></textarea></p>
>   <p><input type="submit" value="Submit" name="B1"><input 
> type="reset" value="Reset" name="B2"></p>
> </form>
> </body>
> </html>
> 
>>From the above 
> I would like to receive 
> T1=&S1=&C1=&B1=Submit
> 
> 
> Thank you for help.
> Ladislav
> 


I've got an example of one way to do this sort of thing here:

http://www.lowerstandard.com/python/uselesspython1.html

It's the bottom entry on the page, labeled: "Useless Comment System". It 
consists of a working example, and you can view all the Python and HTML.

Rob
-- 
A {} is a terrible thing to waste.
Useless Python!
http://www.lowerstandard.com/python

_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/activepython