1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Rep Power

    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...

  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Cambridge, UK
    Rep Power
    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.


IMN logo majestic logo threadwatch logo seochat tools logo