> I know I need to loop through each of the location records 
> passed through the form, but how can I split apart the 3 
> fields: city, state, country?

If you have multiple locations selected they will be separated by commas so
you should use a different delimiter between city, state and country -- e.g.
"|"

Say if Form.location is
"city1|state1|ctry1,city2|state2|ctry2,city3|state3|ctry3"

<cfset city_list="">
<cfset state_list="">
<cfset country_list="">
<cfloop list="Form.location" index="CurrentLocation">
        <cfset city_list=ListAppend(city_list, GetToken(CurrentLocation, 1,
"|"))>
        <cfset state_list=ListAppend(state_list, GetToken(CurrentLocation,
2, "|"))>
        <cfset country_list=ListAppend(country_list,
GetToken(CurrentLocation, 3, "|"))>
</cfloop>

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to