Re: Quickform input=reset element display bug?

From: Date: Tue, 20 May 2003 14:57:45 +0000
Subject: Re: Quickform input=reset element display bug?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5473@lists.php.net to get a copy of this message
<mcarter@quantiv.com> wrote : >> >> I guess there's something wrong with your code. Could you >> send a small test case reproducing the bug ? Thanks, > > I'm not really sure what else you actually need to see this? Okay, here > goes... > > $form = new HTML_QuickForm('frmTest', 'post'); > $form->addElement('submit', 'news_save', 'Save Article'); > $form->addElement('reset', 'news_undo', 'Undo Changes'); > $renderer =& new HTML_QuickForm_Renderer_Array(true); > $form->accept($renderer); > $smarty->assign('formdata', $renderer->toArray()); > > Using Smarty renderer, ah, could this be a problem there? Surely :) Make sure your template is ok for elements that don't need a label. You have probably used ':' in your template block, that's why. Just add a custom block for these elements with no labels. Bertrand Mansion Mamasam

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