Re: Please take me off the list

2007-01-30 Thread Christopher Mocock
Paul Boddie wrote: > See also the Tutor mailing list, which might be a bit better for > starting to learn Python, should you (Daniel) decide to change your > mind. Here's the mailing list's Web page: > > http://mail.python.org/mailman/listinfo/tutor > > If you haven't seen much information for

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

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