new Post\FormField(), "secret" => new Post\SecretFormField(), "file" => new Post\FileUpload(), "select" => new Post\SelectField(array("options"=>array("0"=>"false","1"=>"true"))) )); $form->denyCsrf(); if ($_SERVER["REQUEST_METHOD"]=="POST") { $form->loadFromEnv(); $t=$form; } ?>
fields as $name=>$field) { ?>
'); } elseif ($field instanceof Post\HiddenFormField) { echo(''); } elseif ($field instanceof Post\SelectField) { echo(''); } elseif ($field instanceof Post\SecretFormField) { echo(''); } else { echo(''); } ?>
".htmlspecialchars(var_export($form, true)).""); } ?>