More CGI ?'s...
Joonas Paalasmaa
joonas.paalasmaa at nokia.com
Thu Jul 12 09:34:23 EDT 2001
"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