Log in

View Full Version : Detectiing successful registration


Jon12345
03-29-2012, 07:40 PM
I want to detect that someone has successfully registered using some code on the register.php page. I can check that I am on the register.php?do=addmember page but that is no guarantee of registration. If someone makes an error, they still get sent to register.php?do=addmember.

Is there some additional variable that I can check that confirms they are now a member, on the register.php page?

Thanks,

Jon

BirdOPrey5
04-03-2012, 04:04 PM
The hook register_addmember_complete shpuld only be called when registration was successful.

You could put your code in a plugin in that hook.