And here is the rest of it, since my message was too long...
class PageSecond extends HTML_QuickForm_Page
{
function buildForm()
{
$this->_formBuilt = true;
$this->addElement('header', null, 'Orderformulier - Pagina 2 van 3 - Adresgegevens');
$this->addElement('header', null, 'Adresgegevens');
$this->addElement('text', 'achternaam', 'Achternaam', array('size' => 30));
$this->addElement('text', 'voorletters', 'Voorletters', array('size' => 20));
$geslacht[] = &$this->createElement('radio', null, null, 'Man');
$geslacht[] = &$this->createElement('radio', null, null, 'Vrouw');
$this->addGroup($geslacht, 'geslacht', 'Geslacht');
$this->addElement('text', 'organisatie', 'Organisatie', array('size' => 30));
$this->addElement('text', 'adres', 'Adres', array('size' => 30));
$this->addElement('text', 'postcode', 'Postcode', array('size' => 10));
$this->addElement('text', 'woonplaats', 'Woonplaats', array('size' => 30));
$this->addElement('text', 'provincie', 'Provincie', array('size' => 30));
$this->addElement('text', 'land', 'Land', array('size' => 30));
$dagen = array('1'=>'1', '2'=>'2', '3'=>'3', '4'=>'4', '5'=>'5', '6'=>'6', '7'=>'7', '8'=>'8', '9'=>'9');
$maanden = array('1'=>'1', '2'=>'2', '3'=>'3', '4'=>'4', '5'=>'5', '6'=>'6', '7'=>'7', '8'=>'8', '9'=>'9', '10'=>'10', '11'=>'11', '12'=>'12');
$jaren = array('01'=>'01', '02'=>'02', '03'=>'03', '04'=>'04', '05'=>'05', '06'=>'06', '07'=>'07', '08'=>'08', '09'=>'09');
$geboortedatum[] = &$this->createElement('select', 'dag', null, $dagen);
$geboortedatum[] = &$this->createElement('select', 'maand', null, $maanden);
$geboortedatum[] = &$this->createElement('select', 'jaar', null, $jaren);
$this->addGroup($geboortedatum, 'geboortedatum', 'Geboortedatum');
$this->addElement('text', 'telefoon', 'Telefoon', array('size' => 30));
$this->addElement('text', 'fax', 'Fax', array('size' => 30));
$this->addElement('text', 'email', 'Email', array('size' => 30));
$this->addElement('text', 'kvk', 'Ingeschreven bij KvK te', array('size' => 30));
$this->addElement('text', 'kvknummer', 'KvK nummer', array('size' => 30));
$this->addElement('header', null, 'Factuuradres');
$this->addElement('checkbox', 'personaliavoorfactuur', 'Gebruik bovenstaande personalia ook voor factuur<br>(sla onderstaande vragen over)');
$this->addElement('text', 'fachternaam', 'Achternaam', array('size' => 30));
$this->addElement('text', 'fvoorletters', 'Voorletters', array('size' => 20));
$fgeslacht[] = &$this->createElement('radio', null, null, 'Man');
$fgeslacht[] = &$this->createElement('radio', null, null, 'Vrouw');
$this->addGroup($fgeslacht, 'fgeslacht', 'Geslacht');
$this->addElement('text', 'forganisatie', 'Organisatie', array('size' => 30));
$this->addElement('text', 'fadres', 'Adres', array('size' => 30));
$this->addElement('text', 'fpostcode', 'Postcode', array('size' => 10));
$this->addElement('text', 'fwoonplaats', 'Woonplaats', array('size' => 30));
$this->addElement('text', 'fprovincie', 'Provincie', array('size' => 30));
$this->addElement('text', 'fland', 'Land', array('size' => 30));
$dagen = array('1'=>'1', '2'=>'2', '3'=>'3', '4'=>'4', '5'=>'5', '6'=>'6', '7'=>'7', '8'=>'8', '9'=>'9');
$maanden = array('1'=>'1', '2'=>'2', '3'=>'3', '4'=>'4', '5'=>'5', '6'=>'6', '7'=>'7', '8'=>'8', '9'=>'9', '10'=>'10', '11'=>'11', '12'=>'12');
$jaren = array('01'=>'01', '02'=>'02', '03'=>'03', '04'=>'04', '05'=>'05', '06'=>'06', '07'=>'07', '08'=>'08', '09'=>'09');
$fgeboortedatum[] = &$this->createElement('select', 'dag', null, $dagen);
$fgeboortedatum[] = &$this->createElement('select', 'maand', null, $maanden);
$fgeboortedatum[] = &$this->createElement('select', 'jaar', null, $jaren);
$this->addGroup($fgeboortedatum, 'fgeboortedatum', 'Geboortedatum');
$this->addElement('text', 'ftelefoon', 'Telefoon', array('size' => 30));
$this->addElement('text', 'ffax', 'Fax', array('size' => 30));
$this->addElement('text', 'femail', 'Email', array('size' => 30));
$this->addElement('text', 'fkvk', 'Ingeschreven bij KvK te', array('size' => 30));
$this->addElement('text', 'fkvknummer', 'KvK nummer', array('size' => 30));
$prevnext[] =& $this->createElement('submit', $this->getButtonName('back'), '<< Vorige');
$prevnext[] =& $this->createElement('submit', $this->getButtonName('next'), 'Volgende >>');
$this->addGroup($prevnext, null, '', ' ', false);
$this->addRule('achternaam', 'Vul uw achternaam in', 'required');
$this->addRule('voorletters', 'Vul uw voorletters in', 'required');
$this->addRule('adres', 'Vul uw adres in', 'required');
$this->addRule('postcode', 'Vul uw postcode in', 'required');
$this->addRule('woonplaats', 'Vul uw woonplaats in', 'required');
$this->addRule('land', 'Vul uw land in', 'required');
$this->addRule('telefoon', 'Vul uw telefoonnummer in', 'required');
$this->addRule('email', 'Vul uw e-mailadres in', 'required');
$this->addRule('email', 'Incorrect e-mailadres', 'email');
$this->setDefaultAction('next');
}
}
class PageThird extends HTML_QuickForm_Page
{
function buildForm()
{
$this->_formBuilt = true;
$this->addElement('header', null, 'Orderformulier - Pagina 3 van 3 - Overzicht gegevens');
$this->addElement('static', 'tekst', 'Controleer aub. het volgende overzicht met uw ingevulde gegevens', null);
$this->addElement('header', null, 'Domeinnaam');
echo(''.$this['domeinnaamradio'].'');
$this->addElement('static', 'tekst', 'Merde', ''.$ding.'');
$prevnext[] =& $this->createElement('submit', $this->getButtonName('back'), '<< Back');
$prevnext[] =& $this->createElement('submit', $this->getButtonName('next'), 'Finish');
$this->addGroup($prevnext, null, '', ' ', false);
$this->setDefaultAction('next');
}
}
class ActionProcess extends HTML_QuickForm_Action
{
function perform(&$page, $actionName)
{
echo "Submit successful!<br>\n<pre>\n";
var_export($page->controller->exportValues());
echo "\n</pre>\n";
}
}
$wizard =& new HTML_QuickForm_Controller('Wizard');
$wizard->addPage(new PageFirst('page1'));
$wizard->addPage(new PageSecond('page2'));
$wizard->addPage(new PageThird('page3'));