summaryrefslogtreecommitdiffstats
path: root/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'app/view')
-rw-r--r--app/view/formctrl.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/view/formctrl.php b/app/view/formctrl.php
index e42b2ea..663b2d4 100644
--- a/app/view/formctrl.php
+++ b/app/view/formctrl.php
@@ -20,6 +20,11 @@ namespace formctrl;
<input type="hidden" name="action" value="<?=$name?>" />
<?php } ?>
+<?php function hidden(string $name, string $value) : void { ?>
+
+ <input type="hidden" name="<?=$name?>" value="<?=$value?>" />
+
+<?php } ?>
<?php function text(string $label, string $name, string $value = "", string $placeholder = "",
bool $required = true, bool $disabled = false, string $cls = "", ?string $help = NULL) : void { ?>