$prereserve=array(); $prereserve[] =& HTML_QuickForm::createElement('text','prereserve_time',""); $prereserve[] =& HTML_QuickForm::createElement('text','prereserve_room',""); $this->addGroup($prereserve, 'prereserve', NULL,NULL,FALSE); $ret=$this->addRule(array('prereserve_time','prereserve_room'), get_vocab("errfield_selected_date_invalid"),'callback',"make_prereservation"); if (PEAR::isError($ret)) { echo $ret->getMessage(); echo $ret->getUserInfo(); } Array ( [0] => html_quickform_text Object ( [_attributes] => Array ( [name] => prereserve_time [type] => text ) [_tabOffset] => 0 [_tab] => [_lineEnd] => [_comment] => [_label] => [_type] => text [_flagFrozen] => [_persistantFreeze] => 1 ) [1] => html_quickform_text Object ( [_attributes] => Array ( [name] => prereserve_room [type] => text ) [_tabOffset] => 0 [_tab] => [_lineEnd] => [_comment] => [_label] => [_type] => text [_flagFrozen] => [_persistantFreeze] => 1 ) )