On one page of our site I have this code:
$_SESSION['returnURL'] = "/store/checkout/onepage";
and further down, this control button:
<button type="button" title="Register Today" class="button" onclick="window.location = '/register/';" id="BecomeMember"><span><span>Become a Member Today</span></span></button>
Now, in the register template, I have this code:
<input type="hidden" name="returnURL" id="returnURL" value="<?php if(isset($_SESSION['returnURL'])) { echo $_SESSION['returnURL']; } else { echo '/'; } ?>" />
But this only shows the meaning as /.
What could be the reason for this?
MB34
source share