public function goBackWithErrors()
    {
        if (!session_id()) {
            session_start();
        }

        $_SESSION[ static::SESSION_DATA_KEY ] = self::$errors;


        header('Location: ' . $_SERVER[ 'HTTP_REFERER' ]);
        exit;
    }
public function goBackWithErrors()
    {
        if (!session_id()) {
            session_start();
        }

        $_SESSION[ static::SESSION_DATA_KEY ] = self::$errors;


        header('Location: ' . $_SERVER[ 'HTTP_REFERER' ]);
        exit;
    }
public function goBackWithErrors ( ) { if ( ! session_id ( ) ) { session_start ( ) ; } $ _SESSION [ static :: SESSION_DATA_KEY ] = self :: $ errors ; header ( 'Location: ' . $ _SERVER [ 'HTTP_REFERER' ] ) ; exit ; }
save errors in session and go back to form
save errors in session and go back to form