Using register

The register command creates an account in User Manager for a user. The account privileges of the newly created account match those of User Manager's "New User Settings."

The register command must be run in a page that is the Action of a Forms page. It requires two (2) form fields must be identified with specific name tags:

User Name: 'UM_Name'

Password: 'password'


For example

<FORM ACTION="reg.spml" METHOD="POST" ENCTYPE="x-www-form-encoded">

Please enter a login name (4 to 31 characters, no spaces)<br>

<INPUT TYPE="text" SIZE="32" name="UM_Name"><BR><br>

Please choose a password (4 to 9 characters)<br>

<INPUT TYPE="password" SIZE="10" name="password"><BR><br>

<input type=submit value="Register">



The User Name must be at least three (3) characters, and less than thirty-two (32) characters long.

The Password must be at least three (3) characters, and less than ten (10) characters long.

After completion, register sets the "REGISTER_ERR" environment variable to one of the following strings:

"OK" - the user was added.

"DUP_USER" - the user name is already in use.

"BAD_PASS" - the supplied password was too long or short.

"BAD_NAME" - the supplied name was too long or short.

"BAD_FORM" = the Registration form was missing required fields.

"NO_USER_MGR" - TeleFinder's User Manager is unavailable.

"BAD_CREATE" - an unknown error prevented the user from being added.


You can test and echo the REGISTER_ERR after the register command runs, it is an empty string prior to that.