|
I didn't change a thing in your orriginal post, I just embedded the code within [php] tags, to make it more readable for sde, myself and others..
What I was thinking in my first post, was in the login-form have a hidden field, which would contain the HTTP_REFERER value, and uppon submitting determain if it has a value which is acceptable, if so, display a "you're beeing redirected" page, and redirect to that value, if not, just say "thanx for logging in" and redirect to the frontpage...
Thats basicaly the way most login systems handle it these days.
|