HTML_QuickForm radio button defaults - if one option is not selected, throws error, "Undefined index: <fieldname>..."

From: Date: Tue, 26 Jul 2005 20:23:25 +0000
Subject: HTML_QuickForm radio button defaults - if one option is not selected, throws error, "Undefined index: <fieldname>..."
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20154@lists.php.net to get a copy of this message
I have a form that is used to create new records and edit existing ones. Only several of the MANY fields on the form are required. If there are radio button fields not selected one or the other on the form I am getting an error: "Undefined index: <fieldname>..." I don't want to mark all the field with defaults. I just want to add only the marked ones to the database record. Any ideas that do not require checkingeach of the 50 fields (!!) before they are INSERT/UPDATE in the DB command? Is this just as error that will not show up in production with error-reporting off? Thanks in advance? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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