Re: Handling empty form fields in CGI

2007-01-29 Thread Christopher Mocock
Paul Boddie wrote: > Try replacing this with... > > form = cgi.FieldStorage(keep_blank_values=1) > > Paul > That worked a treat. Thanks very much to both who replied. Chris. -- http://mail.python.org/mailman/listinfo/python-list

Re: Handling empty form fields in CGI

2007-01-26 Thread Paul Boddie
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 entrie

Re: Handling empty form fields in CGI

2007-01-26 Thread Peter Otten
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

Handling empty form fields in CGI

2007-01-26 Thread Christopher Mocock
Hi all, 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. For