python cgi problem with textarea

Adrian Smith adrian_p_smith at yahoo.com
Tue Apr 24 16:49:47 CEST 2007


On Apr 24, 8:00 pm, placid <Bul... at gmail.com> wrote:

> oops...i did read the problem description, but i when i tried the code
> it worked for me and when i put spaces into the TextArea it wasn't
> reflected correctly back. So i thought this was the problem.
>
> Adrian, can you still try replacing spaces with   via the
> following;
>
> #!/usr/bin/python
> import cgi
> import urllib
> import cgitb
> cgitb.enable()
> print "Content-type: text/html\n"
> form = cgi.FieldStorage()
> #print urllib.quote_plus(form["essay"].value)
>
> for char in form["essay"].value:
>    if char == ' ':
>       print " "
>    else:
>       print char
>
> Cheers

I'll try it...but I think it may be a problem on the server end. It's
not showing up in the server logs, either.




More information about the Python-list mailing list