RE: [PHP] radio button arrays and php3

From: Date: Wed, 23 Jul 2003 09:51:03 +0000
Subject: RE: [PHP] radio button arrays and php3
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156410@lists.php.net to get a copy of this message
This is the very nature of radiobuttons. They are ment to return only one value because you can only select one of them. If you want all values returned in an array you have to use checkbox. Checkboxes allow multiple selections. -----Original Message----- From: daniel@electroteque.org [mailto:daniel@electroteque.org] Sent: 23. júlí 2003 03:12 To: php-general@lists.php.net Subject: [PHP] radio button arrays and php3 hi there i dont know if this happens in php4 but say i have a list of radio buttons in an array like <input type="radio" name="secondary_banner[]"> <input type="radio" name="secondary_banner[]"> it only returns the one selected into the array, so instead of having 2 keys i only get the one , the empty one doesnt seem to get submitted , how can i make both turn up in the array ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#156410) next »