RE: [PHP] Radio buttons problem
| From: | leledumbo | Date: | Mon, 10 Aug 2009 10:11:20 +0000 |
| Subject: | RE: [PHP] Radio buttons problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296541@lists.php.net to get a copy of this message | ||
> 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.