diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/view/formctrl.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/view/formctrl.php b/app/view/formctrl.php index ee0243f..3683eb4 100644 --- a/app/view/formctrl.php +++ b/app/view/formctrl.php @@ -15,7 +15,11 @@ namespace formctrl; ?> +<?php function formname(string $name) : void { ?> + <input type="hidden" name="action" value="<?=$name?>" /> + +<?php } ?> <?php function text(string $label, string $name, string $value = "", string $placeholder = "", bool $required = true, bool $disabled = false) : void { ?> |