sargento
asked on
Sorting form elements
If I pass form elements to a script and I want to sort specific ones based on the order of the hidden sort tag:
<input type="HIDDEN" name="sort" value="order:realName,addr ess,addres s_,city,st ate,zip,.. .
How would I do this? The names in the sort are the names of selected hidden inputs I want to sort that were passed!
<input type="HIDDEN" name="sort" value="order:realName,addr
How would I do this? The names in the sort are the names of selected hidden inputs I want to sort that were passed!
ASKER
I want to output the values according to the sort order.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
p.s. I dropped the "order:" from the start of the sort value. I don't know if this is needed. If it is then just strip it off before doing the explode().
ASKER
That's exactly what Iwant! Thanks!
Do you mean that you want to output the values entered in the form according to the specified order? Or are you trying to create a form with the inputs in that order?