flsouto/hthidden

There is no license information available for the latest version (1.0.0) of this package.

Generates hidden form input fields

1.0.0 2017-01-27 00:32 UTC

This package is not auto-updated.

Last update: 2024-04-22 13:43:31 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!!