![]() |
| > Home > Documentation > Latest documentation > Interchange tags > userdb |
|
userdbAccess the Interchange user account facilities. Summary
Various other parameters can be used to override defaults set using the UserDB local configuration directive. See the Interchange user database page. ExamplesTag usage exampleThis tag is usually called from within a mv_click or mv_check callback, as in the following:
Perl example
or similarly with positional parameters:
DescriptionThis tag allows access to the Interchange user account facilities. There are several default parameters that apply to any use of the [userdb] functions. Most importantly, by default the database table name set to "userdb". If you must use another table name, then you should include a "table=somename" parameter with any call to [userdb]. You may override any of the default settings, defined with the UserDB local configuration directive, by passing the appropriate setting name to the [userdb] tag. For example:
See the UserDB page for a full list of default settings. You should also see the Interchange user database page to learn more about Interchange's user database facility. ParametersfunctionThe name of a user account facility to control with this tag. See the User database functions list on the Interchange user database page for more information. cgiBy default, the $Values space (i.e. [value foo]) is selected. Use this parameter if you want to use the volatile $CGI space (i.e. [cgi foo]). This is useful for access to values gathered on a HTML <form>. dbThis parameter allows you to use a different table for user information. The default is userdb. hideThe [userdb] tag will usually return a result code that can be used to determine whether the call succeeded or failed. If this parameter is set true then the result code will be suppressed. nicknameA name to use when loading or saving values using the address book, accounts book, saved carts and preferences facilities. Nicknames should be unique within each facility, unless the intention is to update previously-set values. See also
|
| Home | Legal nonsense | Privacy policy | Contact us |