Project ID:
621097
Project Type:
Fixed
Budget:
$30-$250 USD
Project Description:
Project context:
I need transfer structured data from my client software to ColdFusion 7 powered server.
f.E. I want to pass array of 3 elements. each element has 2 fields.
struct Item {
int id;
string name;
}
Item data[] = {{1, "Joe"}, {2, "Mary"}, {5, "Steve"}};
-----------------
For implementation I plan to encode each value as ARRAYNAME_INDEX_FIELD=VALUE
for Example above I will have next POST data:
data_0_id=1&data_0_name=Joe&data_1_id=2&data_1_name=Mary&data_2_id=5&data_2_name=Steve
-----------------
Project description:
I need CFM function that will have signature like
object[] ExtractData(object params, string prefix)
where "params" is either FORM or URL object. (As I understand I can use any CFM structure object)
and "prefix" is ARRAYNAME part of key (word "data" from example above)
result must be array of CF structures
1. GAF escrow only.
2. Must work under CF 7
I think that this task is about one hour work for experienced CFM developer.
Skills required:
Cold Fusion