What I would do is this:
Edit your register.php to grab and assign the referring page then include it in your register/login form.
Then you'd have to edit your login.php and register.php to check for the existence of the post variable you've specified in those forms, and redirect based on it.
If you can't solve the issue yourself I'm available for custom coding.
|