diff options
author | Malf Furious <m@lfurio.us> | 2018-09-16 16:40:03 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-09-16 16:40:03 -0400 |
commit | 55e503f24a30161bc4a8311e845eff4f4cbb2d40 (patch) | |
tree | b6d1c8ab5127c61644f097549139ca284f8e7c55 /app/view/formctrl.php | |
parent | 4e8b886e21a893d83ffcf8c2924e318bea5b6e2c (diff) | |
download | scrott-55e503f24a30161bc4a8311e845eff4f4cbb2d40.tar.gz scrott-55e503f24a30161bc4a8311e845eff4f4cbb2d40.zip |
Add hidden formctrl
Diffstat (limited to 'app/view/formctrl.php')
-rw-r--r-- | app/view/formctrl.php | 5 |
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 { ?> |