19 declare(strict_types=1);
45 $ui = $DIC->ui()->factory();
47 $request = $DIC->http()->request();
59 $select = $ui->input()->field()->select(
"Choose an Option", $options,
"This is the byline text");
62 $form = $ui->input()->container()->form()->standard(
'#', [$select]);
65 if ($request->getMethod() ==
"POST") {
66 $form = $form->withRequest($request);
67 $result = $form->getData();
69 $result =
"No result yet.";
74 "<pre>" . print_r($result,
true) .
"</pre><br/>" .