Contao\Input::findPost PHP Method

findPost() public static method

Fallback to the session form data if there is no post data
public static findPost ( string $strKey ) : mixed
$strKey string The variable name
return mixed The variable value
    public static function findPost($strKey)
    {
        if (isset($_POST[$strKey])) {
            return $_POST[$strKey];
        }
        if (isset($_SESSION['FORM_DATA'][$strKey])) {
            return $strKey == 'FORM_SUBMIT' ? preg_replace('/^auto_/i', '', $_SESSION['FORM_DATA'][$strKey]) : $_SESSION['FORM_DATA'][$strKey];
        }
        return null;
    }