> -----Original Message-----
From: leledumbo [mailto:leledumbo_cool@xxxxxxxxxxx]
Sent: 10 August 2009 11:11
To: php-general@xxxxxxxxxxxxx
> Subject: RE: Radio buttons 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.
This is far more complicated than it needs to be.
Check this out:
http://php1.net/b/form-radio/
In addition to 'option[]', I certainly can add additional radio
groups for name[], email[], and sex[].
The solution is -- DO NOT force adding an index to each array, such
as name[0], email[0], sex[0], but rather let it be name[], email[],
and sex[].
If you try it, it will work.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php