Re: QuickForm: error when processing unselected radio buttons - "Notice: Undefined index: radio1 in C:\.."
| From: | Alexey Borzov | Date: | Sat, 06 Aug 2005 19:49:16 +0000 |
| Subject: | Re: QuickForm: error when processing unselected radio buttons - "Notice: Undefined index: radio1 in C:\.." | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20308@lists.php.net to get a copy of this message | ||
Hi,
l Burnerheimerton wrote:
Thanks. There are about 40 yes/no fields on this page so building that SQL statement would be enormous and I'd rather not have to default them all when created. But it sounds like those are my choices.... I guess I don't understand why a text field can pass through fine while a radio button can't. IUs it that the radio is an array and without anything being set it's not a valid array?That's simple: if you submit an empty text field that submits as an empty string, if you submit radio buttons that haven't been checked they're not submitted at all. You just don't have the corresponding key in $_POST or $_GET array.