Re: QuickForm: error when processing unselected radio buttons - "Notice: Undefined index: radio1 in C:\.."

From: Date: Sat, 06 Aug 2005 16:09:05 +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-20303@lists.php.net to get a copy of this message
On 8/6/05, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote: > I have a form with LOTS of radio buttons (Yes/No). > They do not have a default value on purpose. > > I use DB::autoPrepare and autoExecute to process the > form. I have tried other ways with the sane result, > however. > > If the user does not select YES or NO to a radio > button, it processes the data and INSERTS or UPDATES > but throws the following error: > > "Notice: Undefined index: pre1 in ..." > Please print the rest of this message. Is this in your code or in the HTML_QuickForm code? > It only happens for the radio buttons that are not > completed. Text and textarea fields that are not > completed do not throw that error. > > How can I fix this? > -- Justin Patrin

« previous php.pear.general (#20303) next »