addGroup('First person'); $first = $form->addContainer('first'); $first->addText('name', 'Your name:'); $first->addText('email', 'Email:'); $first->addText('street', 'Street:'); $first->addText('city', 'City:'); // group Second person $form->addGroup('Second person'); $second = $form->addContainer('second'); $second->addText('name', 'Your name:'); $second->addText('email', 'Email:'); $second->addText('street', 'Street:'); $second->addText('city', 'City:'); // group for button $form->addGroup(); $form->addSubmit('submit', 'Send'); if ($form->isSuccess()) { echo '

Form was submitted and successfully validated

'; Dumper::dump($form->getValues()); exit; } ?> Nette Forms containers example

Nette Forms containers example

render() ?>