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

From: Date: Mon, 08 Aug 2005 00:28:56 +0000
Subject: Re: QuickForm: error when processing unselected radio buttons - more detail included
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20318@lists.php.net to get a copy of this message
On 8/6/05, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote: > 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'],.... > .... > Then the notice happens with your code. I suggest you put an isset() before using it. You may also want to try the newest version of QuickForm and if it still happens and you think QF isn't acting right, try to fix it. > 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 > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Justin Patrin

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