Re: error check problem

by "Phil Babcock" <pbabcock(at)bgsgroup.com>

 Date:  Mon, 28 Aug 2000 16:32:48 -0400
 To:  sales(at)webalchemy.on.ca,
"hwg-languages(at)hwg.org" <hwg-languages(at)hwg.org>
 References:  on felix
  todo: View Thread, Original
I think this should work for validating your form.  It requires each field
to have an entry. If a field is blank then it writes out the field name and
"is blank." 

<%
for each Item in Request.form
	if request.form(Item)  = "" then
		'you could put whatever code you like here, if a blank item is found
		response.write Item & " is blank.<br>"
	end if
next
%>

HTH.


Phil Babcock
Lead Web Designer
BGS Group Inc.

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

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.