J
|
Jane 3/16/2007 |
Evan, function AfterSuccessfulRegistration() { global $values,$conn; $strUpdate = "update _user set group_type='default value' where username='".$values["username"]."' and password='".$values["password"]."'"; db_exec($strUpdate,$conn); echo $strUpdate; } |
T
|
thesofa 3/16/2007 |
Might it not be easier to set a default value in the MYSQL table definition for that field, less code? |
B
|
Blooper 9/20/2007 |
Evan, you can do it using AfterSuccessfulRegistration event on the Events tab. Here is a sample:
|
![]() |
Alexey admin 9/20/2007 |
Hi, $userdata["group_id"]="model";
|
B
|
Blooper 9/21/2007 |
Hi, just add the following code to Before registration event. The code would work with PHPRunner 4.1
|
J
|
Jane 9/24/2007 |
Hi, |