Page 1 of 1

redirection after action

Posted: Tue Jan 04, 2011 3:36 am
by setnaps
Good morning.
I'm working on my wordpress site http://www.victorenrich.com
I have a registration form at http://www.victorenrich.com/desktop-thumbnails
After clicking "register", it goes to thehttp://www.victorenrich.com/wp-login.php wordpress page which I don't want. I want to redirect to http://www.victorenrich.com/notification

The php code in this action is

Code: Select all

<form class="registerform" name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post')?>" method="post">
Could anybody please tell me how to add a redirection after the register action?

Thank you very much

Re: redirection after action

Posted: Tue Jan 04, 2011 9:32 am
by Jade
You need to modify the login script so after it verifies the person has the correct credentials and sets up their session it redirects them using:

Code: Select all

header("Location: http://www.victorenrich.com/notification");
exit;