Graham Dumpleton
grahamd at dscpl.com.au
Sat Dec 23 16:32:50 EST 2006
On 24/12/2006, at 8:08 AM, Ben Barker wrote: > Hi, > > I have just started using mod_python PSP. I have a couple of > questions: > > Firstly, I am trying to upload things from a form and then capture > those variables, either through GET or POST. > > I have been looking for some examples of info on how to upload > variables, and also how to upload and save files, but have been making > slow progress. I know I have to use toe request object, but am not > getting anywhere fast. Any advice on a good source for a basic > tutorial? Access the 'form' attribute from PSP pages. It is an instance of the FieldStorage class (see documentation). It will give you access to form fields for GET/POST forms. Graham
|