More CGI ?'s...

Vincent A. Primavera vincent_a_primavera at netzero.net
Thu Jul 12 06:04:35 EDT 2001


Thank you!

On Thursday 12 July 2001 13:34, Joonas Paalasmaa wrote:
> "Vincent A. Primavera" wrote:
> > Hello,
> >         Is there a way to access each row's data from this text area with
> > python's cgi module(cgi.FieldStorage to be exact...)?
> >
> > <B>Notes:</B><BR>
> > <TEXTAREA NAME="Notes" ROWS=6 COLS=25>
> > </TEXTAREA>
>
> import cgi
> form = cgi.FieldStorage()
>
> Notes = form.getvalue("Notes") or "" #None would cause some problems
> Lines = Notes.split("\r\n")
>
> for x in range(len(Lines)):
>     print "line",x+1,":",Lines[x],"<br>"
>
> - Joonas




More information about the Python-list mailing list