536
<body
<H3>StructKeyList Function</H3>
<H3>Listing the Keys in the Employees Structure</H3>
<P>
This example uses the StructNew function to create a structure
that supplies employee information.
"employee" and its fields are filled with the contents of the following
form.
</P>
<P>
After you have entered employee information into the structure, the
example uses the <b>StructKeyList</b> function to list all of the keys in
the structure.
</P>
<P>
This code does not show how to insert this information into a database.
See CFQUERY for more information
about database insertion.
<hr size="2" color="#0000A0">
<FORM ACTION="structkeylist.cfm" METHOD="post">
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td>First Name:</td>
<td><INPUT NAME="firstname" TYPE="text" 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 list.</b></
td>
</tr>
</table>
bgcolor="#FFFFD5">
CFML Language Reference
The data structure is called
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers