mixed var,
 array button = array("filter"=>"Y","set_filter"=>"Y")

The function returns a number of hidden HTML form tags. The tags returned are built using variables whose names are passed in the array, or their prefix is specified in the mixed type parameter.

Function parameters

ParameterDescription Available from version
var Names of variables. This parameter allows either an array of variables names, or a string with prefix of the required variables.
button This parameter can receive an array containing a name and value of arbitrary variables that will be added to the result. This array structure is as follows:
As a rule, this parameter is used to pass a name and value of the "Set filter" button.
Optional parameter. Value by default - array ("filter" => "Y", "set_filter" => "Y").

See Also

Examples of use

<form method="GET">
    // add a number of hidden tags with prefix named as "filter_"
    // and values equal to the corresponding values of variables 
    echo GetFilterHiddens("filter_");
    <input type="hidden" name="lang" value="<?echo LANGUAGE_ID?>">
    <input type="submit" name="Add" value="Add a new record&gt;">

© «Bitrix24», 2001-2022