summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-16 16:40:03 -0400
committerMalf Furious <m@lfurio.us>2018-09-16 16:40:03 -0400
commit55e503f24a30161bc4a8311e845eff4f4cbb2d40 (patch)
treeb6d1c8ab5127c61644f097549139ca284f8e7c55
parent4e8b886e21a893d83ffcf8c2924e318bea5b6e2c (diff)
downloadscrott-55e503f24a30161bc4a8311e845eff4f4cbb2d40.tar.gz
scrott-55e503f24a30161bc4a8311e845eff4f4cbb2d40.zip
Add hidden formctrl
-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 { ?>