1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>4.6.1 FieldStorage class</title>
5
<META NAME="description" CONTENT="4.6.1 FieldStorage class">
4
<link rel="STYLESHEET" href="modpython.css" type='text/css'>
5
<link rel="first" href="modpython.html" title='Mod_python Manual'>
6
<link rel='contents' href='contents.html' title="Contents">
7
<link rel='index' href='genindex.html' title='Index'>
8
<link rel='last' href='about.html' title='About this document...'>
9
<link rel='help' href='about.html' title='About this document...'>
10
<LINK REL="next" href="pyapi-util-fstor-examples.html">
11
<LINK REL="prev" href="pyapi-util.html">
12
<LINK REL="parent" href="pyapi-util.html">
13
<LINK REL="next" href="pyapi-util-fstor-examples.html">
14
<meta name='aesop' content='information'>
15
<META NAME="description" CONTENT="FieldStorage class">
6
16
<META NAME="keywords" CONTENT="modpython">
7
17
<META NAME="resource-type" CONTENT="document">
8
18
<META NAME="distribution" CONTENT="global">
9
<link rel="STYLESHEET" href="modpython.css">
10
<link rel="first" href="modpython.html">
11
<link rel="contents" href="contents.html" title="Contents">
12
<link rel="index" href="genindex.html" title="Index">
13
<LINK REL="next" href="pyapi-util-fstor-fld.html">
14
<LINK REL="previous" href="pyapi-util.html">
15
<LINK REL="up" href="pyapi-util.html">
16
<LINK REL="next" href="pyapi-util-fstor-fld.html">
19
<title>4.6.1 FieldStorage class</title>
19
22
<DIV CLASS="navigation">
20
23
<table align="center" width="100%" cellpadding="0" cellspacing="2">
22
<td><A href="pyapi-util.html"><img src="icons/previous.gif"
23
border="0" height="32"
24
alt="Previous Page" width="32"></A></td>
25
<td><A href="pyapi-util.html"><img src="icons/up.gif"
26
border="0" height="32"
27
alt="Up One Level" width="32"></A></td>
28
<td><A href="pyapi-util-fstor-fld.html"><img src="icons/next.gif"
29
border="0" height="32"
30
alt="Next Page" width="32"></A></td>
25
<td><a rel="prev" title="4.6 util - Miscellaneous"
26
href="pyapi-util.html"><img src='previous.gif'
27
border='0' height='32' alt='Previous Page' width='32'></A></td>
28
<td><a rel="parent" title="4.6 util - Miscellaneous"
29
href="pyapi-util.html"><img src='up.gif'
30
border='0' height='32' alt='Up One Level' width='32'></A></td>
31
<td><a rel="next" title="4.6.2 FieldStorage Examples"
32
href="pyapi-util-fstor-examples.html"><img src='next.gif'
33
border='0' height='32' alt='Next Page' width='32'></A></td>
31
34
<td align="center" width="100%">Mod_python Manual</td>
32
<td><A href="contents.html"><img src="icons/contents.gif"
33
border="0" height="32"
34
alt="Contents" width="32"></A></td>
35
<td><img src="icons/blank.gif"
36
border="0" height="32"
37
alt="" width="32"></td>
38
<td><A href="genindex.html"><img src="icons/index.gif"
39
border="0" height="32"
40
alt="Index" width="32"></A></td>
35
<td><a rel="contents" title="Table of Contents"
36
href="contents.html"><img src='contents.gif'
37
border='0' height='32' alt='Contents' width='32'></A></td>
38
<td><img src='blank.gif'
39
border='0' height='32' alt='' width='32'></td>
40
<td><a rel="index" title="Index"
41
href="genindex.html"><img src='index.gif'
42
border='0' height='32' alt='Index' width='32'></A></td>
42
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-util.html">4.6 util - Miscellaneous</A>
43
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-util.html">4.6 util - Miscellaneous</A>
44
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-util-fstor-fld.html">4.6.2 Field class</A>
44
<b class="navlabel">Previous:</b>
45
<a class="sectref" rel="prev" href="pyapi-util.html">4.6 util - Miscellaneous</A>
46
<b class="navlabel">Up:</b>
47
<a class="sectref" rel="parent" href="pyapi-util.html">4.6 util - Miscellaneous</A>
48
<b class="navlabel">Next:</b>
49
<a class="sectref" rel="next" href="pyapi-util-fstor-examples.html">4.6.2 FieldStorage Examples</A>
47
52
<!--End of Navigation Panel-->
57
62
<tt class="module">cgi</tt> <tt class="class">FieldStorage</tt>.
60
<dl><dt><b><span class="typelabel">class</span> <a name="l2h-169"><tt class="class">FieldStorage</tt></a></b>(<var>req</var><big>[</big><var>, keep_blank_values, strict_parsing</var><big>]</big>)
65
<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
66
<td><nobr><b><span class="typelabel">class</span> <a name="l2h-190"><tt class="class">FieldStorage</tt></a></b>(</nobr></td>
67
<td><var>req</var><big>[</big><var>, keep_blank_values, strict_parsing, file_callback, field_callback</var><big>]</big>)</td></tr></table>
62
69
This class provides uniform access to HTML form data submitted by the
63
70
client. <var>req</var> is an instance of the mod_python request object.
72
79
The optional argument <var>strict_parsing</var> is not yet implemented.
82
The optional argument <var>file_callback</var> allows the application to override
83
both file creation/deletion semantics and location. See
84
<A href="pyapi-util-fstor-examples.html#pyapi-util-fstor-examples">4.6.2</A> ``FieldStorage Examples'' for additional
85
information. <i>New in version 3.2</i>
88
The optional argument <var>field_callback</var> allows the application to override
89
both the creation/deletion semantics and behaviour. <i>New in version 3.2</i>
75
92
During initialization, <tt class="class">FieldStorage</tt> class reads all of the
76
93
data provided by the client. Since all data provided by the client is
77
94
consumed at this point, there should be no more than one
161
182
<table align="center" width="100%" cellpadding="0" cellspacing="2">
163
<td><A href="pyapi-util.html"><img src="icons/previous.gif"
164
border="0" height="32"
165
alt="Previous Page" width="32"></A></td>
166
<td><A href="pyapi-util.html"><img src="icons/up.gif"
167
border="0" height="32"
168
alt="Up One Level" width="32"></A></td>
169
<td><A href="pyapi-util-fstor-fld.html"><img src="icons/next.gif"
170
border="0" height="32"
171
alt="Next Page" width="32"></A></td>
184
<td><a rel="prev" title="4.6 util - Miscellaneous"
185
rel="prev" title="4.6 util - Miscellaneous"
186
href="pyapi-util.html"><img src='previous.gif'
187
border='0' height='32' alt='Previous Page' width='32'></A></td>
188
<td><a rel="parent" title="4.6 util - Miscellaneous"
189
rel="parent" title="4.6 util - Miscellaneous"
190
href="pyapi-util.html"><img src='up.gif'
191
border='0' height='32' alt='Up One Level' width='32'></A></td>
192
<td><a rel="next" title="4.6.2 FieldStorage Examples"
193
rel="next" title="4.6.2 FieldStorage Examples"
194
href="pyapi-util-fstor-examples.html"><img src='next.gif'
195
border='0' height='32' alt='Next Page' width='32'></A></td>
172
196
<td align="center" width="100%">Mod_python Manual</td>
173
<td><A href="contents.html"><img src="icons/contents.gif"
174
border="0" height="32"
175
alt="Contents" width="32"></A></td>
176
<td><img src="icons/blank.gif"
177
border="0" height="32"
178
alt="" width="32"></td>
179
<td><A href="genindex.html"><img src="icons/index.gif"
180
border="0" height="32"
181
alt="Index" width="32"></A></td>
197
<td><a rel="contents" title="Table of Contents"
198
rel="contents" title="Table of Contents"
199
href="contents.html"><img src='contents.gif'
200
border='0' height='32' alt='Contents' width='32'></A></td>
201
<td><img src='blank.gif'
202
border='0' height='32' alt='' width='32'></td>
203
<td><a rel="index" title="Index"
204
rel="index" title="Index"
205
href="genindex.html"><img src='index.gif'
206
border='0' height='32' alt='Index' width='32'></A></td>
183
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-util.html">4.6 util - Miscellaneous</A>
184
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-util.html">4.6 util - Miscellaneous</A>
185
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-util-fstor-fld.html">4.6.2 Field class</A>
208
<b class="navlabel">Previous:</b>
209
<a class="sectref" rel="prev" href="pyapi-util.html">4.6 util - Miscellaneous</A>
210
<b class="navlabel">Up:</b>
211
<a class="sectref" rel="parent" href="pyapi-util.html">4.6 util - Miscellaneous</A>
212
<b class="navlabel">Next:</b>
213
<a class="sectref" rel="next" href="pyapi-util-fstor-examples.html">4.6.2 FieldStorage Examples</A>
187
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
215
<span class="release-info">Release 3.2.10, documentation updated on July 19, 2006.</span>
189
217
<!--End of Navigation Panel-->