What's the best way to loop through an elements if the name attribute is an array?
for example
<input type="hidden" name="data[test-1]" value="1" />
<input type="hidden" name="data[test-2]" value="2" />
<input type="hidden" name="data[test-3]" value="3" />
<input type="hidden" name="data[test-4]" value="4" />
and then i will be able to get the array index
test-1 test-2 test-3 test-4
Help much appreciated!
thanks,