<?php include('test04_form.php'); $form = new Test04Form(); $form->start(); if (isset($_SESSION['data'])) { $form->setData($_SESSION['data']); $form->validate(); unset($_SESSION['data']); } echo $form->show(new AF_ParagraphLayout()); ?>
<?php include('test04_form.php'); $form = new Test04Form(); $form->start(); $_SESSION['data'] = $form->getData(); if ($form->validate()) { header('Location: test04_saved.php'); } else { header('Location: test04.php'); } exit(); ?>