<p>First name is #StructFind(employee, "firstname")#</p>
<p>Last name is #StructFind(employee, "lastname")#</p>
<p>EMail is #StructFind(employee, "email")#</p>
<p>Phone is #StructFind(employee, "phone")#</p>
<p>Department is #StructFind(employee, "department")#</p>
</cfoutput>
<!--- Call the custom tag that adds employees --->
<CF_ADDEMPLOYEE EMPINFO = "#employee#">
</cfif>
<Hr>
<form action = "structinsert.cfm">
<p>First Name:
<input name = "firstname" type = "text" hspace = "30" maxlength = "30">
<p>Last Name:
<input name = "lastname" type = "text" hspace = "30" maxlength = "30">
<p>EMail:
<input name = "email" type = "text" hspace = "30" maxlength = "30">
<p>Phone:
<input name = "phone" type = "text" hspace = "20" maxlength = "20">
<p>Department:
<input name = "department" type = "text" hspace = "30" maxlength = "30">
<p>
<input type = "submit" value = "OK">
</form>
706
Chapter 3: ColdFusion Functions