Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Charles Phillips: "I very much like the program and all of its functionality! Would be happy to give you an endorsement or recommend it to others - saves me a ton of time".
David Lantz: "Thank you, this is by far the simplest, and most friendly utility for building db record system I have ever used. I wish I could get my systems guys at the office to purchase this for our company would be so very helpful and speed up a lot of work. I for one have used it for everything from a simple inventory record of my house, to a members record for my church just little pet projects and a test bed to test my own db builds and theories before having to hand code at the office..... it is a lot of fun to work with".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnBeforeUserRegistration event

This event occurs before a user is registered.

 

Signature:

function OnBeforeUserRegistration($userName, $email, $password, 

                                       &$allowRegistration, &$errorMessage)

 

Parameters:

$userName

The name of the user.

$email

The email of the user.

$password

The password of the user.

$allowRegistration

A parameter to indicate whether user registration is allowed. Set $allowRegistration to false to reject the new user. Default value is true.

$errorMessage

A message to be displayed if $allowRegistration == false.

 

Example

The code snippet below demonstrates how to deny registrations for users with a mailinator.com email address.

 

$emailDomainName = substr($email, strrpos($email, '@') + 1);

if ($emailDomainName == 'mailinator.com') {

  $allowRegistration = false;

  $errorMessage = "It is forbidden to register with mailinator's emails";

}

 

 



Prev Return to chapter overview Next