Thread: Adding a Link
View Single Post
Old 09-23-2006, 09:57 AM   #9 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,705
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote