so am i right in saying that you code you just gave me just now replaces the original code you gave me early one which was:
<a href="regitration.php?accesscheck=<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">register</a>
as this is what confused me slightly :)
I just need to make sure that :
1. (all registration links is done via the link on the login and forget password page)
2. if customer registers by going to login page first, it will log them in and go to their account.
3. if customer adds stuff to cart then when they go to checkout it requires them to login, but they click on register after register they go to checkout page (without going to their account as stated in point 2).
4. if customer adds stuff to cart then when they go to checkout they just login, then this goes to checkout (this currently happens on my original code thats live on website)
I just want to confirm that your code help does the above conditions.
currently your code suggestion is:
on the register form i use: action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != ""?"?".htmlentities($_SERVER["QUERY_STRING"], ENT_QUOTES):""); ?>"
and on the register link (on my login and forget password pages, i use the code:
Obviously on the register page i do have "secruity assist authenticate user"
and have ticked "pass original query string on redirect" and "go to previous url (if exists)"
if log in succeeds, go to: accoutn.php
if log in fails go to: login.php
on the login.php for he authenticate user i also have ticked the passquery string and go to previous url, i left if log in succeeds blank.
obviously i attahced the files previously as well to show what i mean.