summaryrefslogtreecommitdiffstats
path: root/app/view
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-19 15:20:37 -0400
committerMalf Furious <m@lfurio.us>2018-09-19 15:20:37 -0400
commitac291fbe6db4a099bc8281e31ace13dad0a42d79 (patch)
treeeaea9adb7a1dd8caf994de09e47448407de730f4 /app/view
parent9830d73b6819c4930bd96cc657b42aa3a10d8d66 (diff)
downloadscrott-ac291fbe6db4a099bc8281e31ace13dad0a42d79.tar.gz
scrott-ac291fbe6db4a099bc8281e31ace13dad0a42d79.zip
formctrl: Hidden field name should be in 'input' array
The input[ ] portion of the hidden field name had been left off. This commit fixes this bug.
Diffstat (limited to 'app/view')
-rw-r--r--app/view/formctrl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/view/formctrl.php b/app/view/formctrl.php
index 663b2d4..1ed1452 100644
--- a/app/view/formctrl.php
+++ b/app/view/formctrl.php
@@ -22,7 +22,7 @@ namespace formctrl;
<?php } ?>
<?php function hidden(string $name, string $value) : void { ?>
- <input type="hidden" name="<?=$name?>" value="<?=$value?>" />
+ <input type="hidden" name="input[<?=$name?>]" value="<?=$value?>" />
<?php } ?>
<?php function text(string $label, string $name, string $value = "", string $placeholder = "",