Christopher Mocock wrote:
>
> Bit of a python newbie so need a little help with a CGI script I'm
> trying to write. I've got it working fine as long as the fields of the
> form are filled in correctly, however I need to be able to accept blank
> entries. Therefore I want to convert any empty entries to an empty string.

[...]

> form = cgi.FieldStorage()

Try replacing this with...

form = cgi.FieldStorage(keep_blank_values=1)

Paul

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to