I didnt notice that anyone had replied to this, so I cobbled something together. Your solution seems to be a lot neater.
I added an extra hidden field in the signupadult and register templates:
Code:
<input type="hidden" name="benurl" value="$_REQUEST[benurl]" />
so that I can pass register.php a new redirect url will be available to register.php when registration was done.
Then I added a simple if statement in register.php:
Code:
if(strlen($_REQUEST['benurl']) > 0){
$url = "http://www.vitalphysique.co.uk/".$_REQUEST['benurl'];
}
just before the line:
Code:
eval(print_standard_redirect('redirect_registerthanks'));
Works like a charm.
B.