I have developed a search form, I want to check and make sure one of the fields is
filled out. This worked fine for the input boxes, however when I added the checkbox I
now get an error. Here is the code:
<!-- Error message -->
<cfif form.lastname is "">
<cfif form.title is "">
<cfif form.categories is "">
<HTML><HEAD><title>User Error</title></head>
<body><p><b>User Error! Please go back and enter search criteria in at least one of
the search fields<br>
</b>
</body>
</html>
<cfabort>
</cfif>
</cfif>
</cfif>
<CFSET MaxRows = 1>
<CFPARAM NAME="start" DEFAULT="1">
<CFPARAM NAME="form.lastname" DEFAULT="">
<CFPARAM NAME="form.title" DEFAULT="">
<CFPARAM NAME="form.categories" DEFAULT="0">
Please help!!!
Kim Foley
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists