MACROMEDIA COLFUSION MX 7-CFML Reference page 742

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

<option value = "Sales">
Sales
</OPTION>
</select>
</select>
<input type = "Submit" name = "Submit" value = "Search Employee List">
</form>
<!--- wait to have a string for searching defined --->
<cfif IsDefined("FORM.Submit") and IsDefined("FORM.departmentName")>
<cfset myList = ValueList(SearchByDepartment.Department)>
<cfset numberInDepartment = ListValueCountNoCase(myList,
FORM.departmentName)>
<cfif numberInDepartment is 0>
<h3>There are no employees in <cfoutput>#FORM.departmentName#</
cfoutput></h3>
<cfelseIf numberInDepartment is 1>
<cfoutput><p>There is only one person in #FORM.departmentName#.
</cfoutput>
<cfelse>
<cfoutput><p>There are #numberInDepartment# people in
#FORM.departmentName#.
</cfoutput>
</cfif>
</cfif>
742
Chapter 3: ColdFusion Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents