[mod_python] Accessing all form fields, empty strings or not

François Heredero - Top Music SA fheredero at topmusic.ch
Fri May 21 18:16:16 EDT 2004



-----Message d'origine-----
De : François Heredero - Top Music SA [mailto:fheredero at topmusic.ch]
Envoyé : vendredi, 21. mai 2004 17:13
À : Diener, Edward
Objet : RE: [mod_python] Accessing all form fields, empty strings or not


>i need to access all form fields in my mod_python PSP code,
>whether they are empty strings or not.
I think (but perhaps I'm wrong) empty strings are not supplied by http
protocol...

With the CGI module, I use :

form = cgi.FieldStorage()
mytext = float(form.getfirst("text", ""))

François



More information about the Mod_python mailing list