MACROMEDIA COLDFUSION MX 61-CFML Reference page 709

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

value = "" hspace = "30" maxlength = "30"></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input name = "lastname" type = "text"
value = "" hspace = "30" maxlength = "30"></td>
</tr>
<tr>
<td>EMail</td>
<td><input name = "email" type = "text"
value = "" hspace = "30" maxlength = "30"></td>
</tr>
<tr>
<td>Phone:</td>
<td><input name = "phone" type = "text"
value = "" hspace = "20" maxlength = "20"></td>
</tr>
<tr>
<td>Company:</td>
<td><input name = "company" type = "text"
value = "" hspace = "30" maxlength = "30"></td>
</tr>
<tr>
<td><input type = "submit" name = "submit"
value = "OK"></td>
<td><b>After you submit the FORM, scroll down to see the array.</b>
</td>
</tr>
</table>
</form>
<cfif NOT StructISEmpty(employee)>
<hr size = "2" color = "#0000A0">
<cfset keysToStruct = StructKeyArray(employee)>
<cfloop index = "i" from = "1" to = "#ArrayLen(keysToStruct)#">
<p><cfoutput>Key#i# is #keysToStruct[i]#</cfoutput></p>
<p><cfoutput>Value#i# is #employee[keysToStruct[i]]#</cfoutput>
</p>
</cfloop>
</cfif>
StructKeyArray
709

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents