Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deserialing arrays

Status
Not open for further replies.

ahksar

Programmer
Jan 11, 2001
43
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top