I have a publishing form, with a dynamic select field named rating. I have to publish the news articles, and the order should be in the order I select in rating. So if I have 5 articles, and I check them off and then rate them 1 to 5, I want the articles to appear in that order. I tried serialising the rating using WDDX, and deserialising, so I can sort using an array in the display page, and the error I get is
"Output
Cannot set variable with name 1,2. The variable name is illegal. Variable names must start with a letter and can include only letters, numbers, and underscores.", output being the variable name I set for the WDDX2CFML output.
If I remove the ## from rating, I get this error.
XML parsing error: junk after document element (error code 9, line 1, column 92, buffer offset 92)
Is there some other way I can do this using arrays, or any other way ? How can I pass a form field into an array?
Any help will be greatly appreciated.
Thanks,
ahksar
"Output
Cannot set variable with name 1,2. The variable name is illegal. Variable names must start with a letter and can include only letters, numbers, and underscores.", output being the variable name I set for the WDDX2CFML output.
If I remove the ## from rating, I get this error.
XML parsing error: junk after document element (error code 9, line 1, column 92, buffer offset 92)
Is there some other way I can do this using arrays, or any other way ? How can I pass a form field into an array?
Any help will be greatly appreciated.
Thanks,
ahksar