flsouto / hthidden
Generates hidden form input fields
Installs: 58
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/flsouto/hthidden
Requires
- flsouto/htfield: ^1.0
This package is not auto-updated.
Last update: 2025-10-06 21:05:52 UTC
README
Generates hidden html input tags.
Installation
Use composer:
composer require flsouto/hthidden
Notice: this library relies on the HtField class. The inherited functionality will not be covered here. Read this documentation if you want to learn more about it.
Usage
The example below creates a hidden input named "submit" with a value of "1":
<?php require_once('vendor/autoload.php'); use FlSouto\HtHidden; $hidden = new HtHidden("submit", "1"); echo $hidden;
Output:
<input id="588a9398b198f" name="submit" type="hidden" value="1" />
Wow!! This is some rocket science!!