Re: QuickForm: error when processing unselected radio buttons - more detail included

From: Date: Sat, 06 Aug 2005 17:46:35 +0000
Subject: Re: QuickForm: error when processing unselected radio buttons - more detail included
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20307@lists.php.net to get a copy of this message
OK - more detail: On the resulting page after submission I receive the following errors: Notice: Undefined index: a5 in C:\testsite\radioform.php on line 256 On line 256 of my code is where I gather the values of the submitted data, below it's "$table_values = " function process_data ($v) { ... $table_values = array($v['a5']['ap5'], $v['p6']['rp6'],.... .... I hope that gives you enough to provide some input - many thanks. --- Justin Patrin <papercrane@gmail.com> wrote: > 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 > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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