diff options
author | Malf Furious <m@lfurio.us> | 2018-09-19 15:20:37 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-09-19 15:20:37 -0400 |
commit | ac291fbe6db4a099bc8281e31ace13dad0a42d79 (patch) | |
tree | eaea9adb7a1dd8caf994de09e47448407de730f4 | |
parent | 9830d73b6819c4930bd96cc657b42aa3a10d8d66 (diff) | |
download | scrott-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 '')
-rw-r--r-- | app/view/formctrl.php | 2 |
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 = "", |