RE: [PHP] Radio buttons problem

From: Date: Mon, 10 Aug 2009 14:33:41 +0000
Subject: RE: [PHP] Radio buttons problem
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-296551@lists.php.net to get a copy of this message
-----Original Message-----
From: leledumbo [mailto:leledumbo_cool@yahoo.co.id] Sent: 10 August 2009 11:11 To: php-general@lists.php.net
Subject: RE: [PHP] 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

« previous php.general (#296551) next »