From: Steven L. <st...@tu...> - 2005-03-02 17:14:35
|
On Wed, 2005-03-02 at 16:47 +0100, Sander van den Broek wrote: > I got this form element: > > <code> > $rub = array(); > $rub[]=NULL; > $rub['1']="String1"; > $rub['2']="String2"; > $rub['3']="String3"; > $rub['4']="String4"; > $rub['5']="String5"; > > $form->add('catrubriek', 'select', $rub); > </code> > > I want the form to select value "$this->_thisrub" as a default in the > select-element. > > How can this be done? $form->setMatch('catrubriek', $this->_thisrub); -- Steven |