hwg-techniques archives | Apr 2002 | new search | results | previous | next |
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