This topic is locked

Registration Page - adding values not on the registration page

4/1/2009 11:28:44 PM
PHPRunner General questions
M
mlapl1 author

I have a registration page.
When a person registers successfully, I would like to add information to their record in the database, specifically the timestamp at which they register and I also want to set certain variables to certain values (I would like to set a field called "active" to "1".
I believe that I should use events to do this. In the "Add page" I use the "Before Record Added" event to do this (using custom code) and it works very well.
However, I have tried to do the same thing with "Before registration" and "After successful registration" events but neither works.
I should add that the fields I want to act upon are not on the registration page - as I am using the default page generated by the system.
Any ideas?
Thanks

Andrew

J
Jane 4/2/2009

Andrew,
what code do you use?

In general to save new values in the table use Before register event.

M
mlapl1 author 4/2/2009

Andrew,

what code do you use?

In general to save new values in the table use Before register event.


I believe I did try the Before Register event and created Custom Code as follows:
$values["field_name"] = "1";
I will try again
Thanks

Andrew