Re: Forms - Text Fields - Numerical Values

by "Darrell King" <darrell(at)webctr.com>

 Date:  Tue, 30 Apr 2002 06:57:07 -0400
 To:  "HWG Techniques Email List" <hwg-techniques(at)hwg.org>,
"Nathan" <natelyle(at)chartermi.net>
 References: 
  todo: View Thread, Original
The browser should send a 0, so I assume your problem is server-side.  The
PHP function empty(), for instance, will return true for 0 OR an empty
string (or if the variable is not set.) So, if the possibility exists that a
form field might contain a valid result of 0, you should check that field
specifically for an empty string using whatever tools your scripting
language provides for this purpose.

D


----- Original Message -----
From: "Nathan" <natelyle(at)chartermi.net>


Has anyone run into the problem of a form entry of "0" (zero) not being
sent because the browser/cgi script interpreted an entry of 0 to mean
nothing was entered?

If so, is there a work around?

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA