选择语言 :

 Core_Form::hidden

Creates a hidden form input.

echo Form::hidden('csrf', $token);
string Core_Form::hidden( string $name [, string $value = null , array $attributes = null ] )
uses
Form::input

参数列表

参数 类型 描述 默认值
$name string Input name
$value string Input value null
$attributes array Html attributes null
返回值
  • string
File: ./core/classes/form.class.php
public static function hidden($name, $value = null, array $attributes = null)
{
    $attributes['type'] = 'hidden';

    return Form::input($name, $value, $attributes);
}