/register.php

Description

Registeration Script

Validates the user information and registers new users in the database.

  • author: Stanislav Miroshnikov
Includes
require_once ("HTML/QuickForm.php") (line 21)

Requires PEAR HTML QuickForm package

Functions
register (line 154)

Register the user in the database using the validated data

void register (fields $fields)
  • fields $fields: associative array containing the fields of form
unique_validate (line 179)

Verifies the uniqueness of the username and phone number

  • return: if the username and phone number are valid, else it returns an associative array of error messages
true unique_validate (fields $fields)
  • fields $fields: associative array containing the fields of form

Documentation generated on Tue, 4 Jan 2005 20:26:07 -0500 by phpDocumentor 1.3.0RC3