You are here

function hidden_2fa_Fields in Google Authenticator / 2 Factor Authentication - 2FA 7

1 call to hidden_2fa_Fields()
miniorange_2fa_feedback in ./miniorange_2fa_feedback.php

File

./miniorange_2fa_feedback.php, line 226

Code

function hidden_2fa_Fields($key, $value) {
  $hidden_2fa_Field = "";
  $value2 = array();
  if (is_array($value)) {
    foreach ($value as $key2 => $value2) {
      if (is_array($value2)) {
        hidden_2fa_Fields($key . "[" . $key2 . "]", $value2);
      }
      else {
        $hidden_2fa_Field = "<input type='hidden' name='" . $key . "[" . $key2 . "]" . "' value='" . $value2 . "'>";
      }
    }
  }
  else {
    $hidden_2fa_Field = "<input type='hidden' name='" . $key . "' value='" . $value . "'>";
  }
  echo $hidden_2fa_Field;
}