> Why do you? There's no reason you *have* to have consecutive indexes --
just iterate over the resulting > array with foreach, and there's no
problem.

There is, the entries are grouped by its index. So, I group name[0],
email[0], and sex[0] as one. The problem if I don't maintain the index for
radio buttons, the index could go wrong.

In the previous example I gave, if entry2 is deleted (and I don't maintain
the index) then entry3 will contain name[1], email[1], and sex[2] which
isn't desirable.
-- 
View this message in context: 
http://www.nabble.com/Radio-buttons-problem-tp24786766p24897287.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to