Topic: steps to integration Register

Hi there,
Here is an excellent guide  to integrate login/logout to an existing website. Now I have made a form so that users can register via this form. But I can't figure out how they can be redirected to the same page after registration. which parts of register.php page should be changed?  Thanks.