April 4th, 2004, 10:54 AM
Spyce: POST variables in the order on the form
I have a dhtml table/form that lets the user add/delete rows and enter data into the form. What I'm trying to do is figure out a way to have the form variables sorted by the order in which they appear in the table. For my strange scenario, I need the form variables in the order they appear in the table so I can put them into XML, in order.
The hard part is that I have the form variables named "type1" to typeX". However, since each table row can add/delete, the numbers can end up being out of order (e.g., type1 then type3 then type2).
I'm not sure how to attack this or if there is a solution to my problem. I hope there is so I don't have to start over from scratch with a new design! I have probably stated my question/problem poorly so let me know what I need to clarify...
April 4th, 2004, 05:53 PM
How about constructing a hidden input with a value that is a comma separated list of the name(s) and post that with the form? You could just make it the numeric part of course.