Re: HTML_QuickForm, advcheckbox, setChecked()

From: Date: Mon, 19 Apr 2004 03:09:31 +0000
Subject: Re: HTML_QuickForm, advcheckbox, setChecked()
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27967@lists.php.net to get a copy of this message
Paul: On Sun, Apr 18, 2004 at 11:53:59AM -0500, Paul M Jones wrote: > > I'm not certain that is the case. Each element must have a unique ID > attribute, but multiple elements are allowed to have identical names > (e.g., a series of radio buttons will use the same name). Like you said "radio buttons" have the same name, because you can only select one. Hence, what comes back is unique. Similarly, what comes back from a checkbox must be unique as well. Regarding check boxes, it all depends on what one means by "must." Will the HTML render if you have two elements with the same name? Yes. But what matters is "does the data that comes back make any sense?" No. Aidan is right. Each checkbox element should have a distinct name. Enjoy, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.dev (#27967) next »