[dev] Horde_Form buttons

Andrew Coleman mercury at appisolutions.net
Wed Jul 28 11:26:08 PDT 2004


Found out the problem, i was using the wrong combination of rendering 
commands...

Before:
$form->open($renderer, $vars, 'stock.php', 'post');
if ($active) {
     $renderer->beginActive($form->getTitle());
     $renderer->renderFormActive($form, $vars);
     $renderer->submit();
} else {
     $renderer->beginInactive($form->getTitle());
     $renderer->renderFormInactive($form, $vars);
}
$renderer->end();
$form->close($renderer);

After:
if ($active) {
     $form->renderActive($renderer, $vars, 'stock.php', 'post');
} else {
     $form->renderInactive($renderer, $vars, 'stock.php', 'post');
}

So now my question is, why does sesha work with that code, and mine not?

--
Andrew Coleman

/-\   The ASCII
\ /   Ribbon Campaign
  X    Against HTML
/ \   E-Mail!



More information about the dev mailing list