TypeError: not indexable in cgi.py?

Ignacio Vazquez-Abrams ignacio at openservices.net
Thu Aug 23 07:33:53 CEST 2001


On Thu, 23 Aug 2001, Richard Jones wrote:

> On Thursday 23 August 2001 15:06, Kurt Jansen wrote:
> > Sorry if this may be a newbie question, but that is exactly what I am.
>
> Don't apologise, we're here to help :)
>
>
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML>
> > <HEAD>
> > <TITLE>Family Information</TITLE>
> > </HEAD>
> > <BODY><FORM method="POST" action="/cgi-bin/formhandler.py"
> > enctype="text/plain" target="_self">First Name<INPUT size="12" type="text"
> > name="fname" maxlength="20"> Last Name <INPUT size="15" type="text"
> > name="lname"><BR> <INPUT type="submit" name="sub" value="Submit"></FORM>
> > </BODY>
> > </HTML>
>
> I'm not sure what the exact problem is, but that enctype="text/plain" could
> be the culprit.
>
>    Richard

Yes, definitely take that out. The only true valid values are
'application/x-www-form-urlencoded' (the default), and 'multipart/form-data'
which should be used with <input type="file" ...>.

  http://www.w3.org/TR/html4/interact/forms.html

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list