diff options
Diffstat (limited to 'Doc/lib/libcgi.tex')
-rw-r--r-- | Doc/lib/libcgi.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libcgi.tex b/Doc/lib/libcgi.tex index 3b755a0..e90bf1c 100644 --- a/Doc/lib/libcgi.tex +++ b/Doc/lib/libcgi.tex @@ -104,7 +104,7 @@ If the submitted form data contains more than one field with the same name, the object retrieved by \samp{form[\var{key}]} is not a \class{FieldStorage} or \class{MiniFieldStorage} instance but a list of such instances. If you expect this possibility -(i.e., when your HTML form comtains multiple fields with the same +(i.e., when your HTML form contains multiple fields with the same name), use the \function{type()} function to determine whether you have a single instance or a list of instances. For example, here's code that concatenates any number of username fields, separated by @@ -131,7 +131,7 @@ If a field represents an uploaded file, the value attribute reads the entire file in memory as a string. This may not be what you want. You can test for an uploaded file by testing either the filename attribute or the file attribute. You can then read the data at -leasure from the file attribute: +leisure from the file attribute: \begin{verbatim} fileitem = form["userfile"] |