public static function beginForm($name)
    {
        $name = self::_formHash($name);
        $token = md5(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));
        $_SESSION[$name] = $token;
        return '<input type="hidden" name="'.$name.'" value="'.$token.'" />';
    }