From 55e503f24a30161bc4a8311e845eff4f4cbb2d40 Mon Sep 17 00:00:00 2001 From: Malf Furious <m@lfurio.us> Date: Sun, 16 Sep 2018 16:40:03 -0400 Subject: Add hidden formctrl --- app/view/formctrl.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/view') 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 @@ -19,6 +19,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 { ?> -- cgit v1.2.3