On my site if there are no images with a location a link is displayed so users can add images for that location.
I use a query string that has the location name and location id in it. So when the user is on the addimages.php page it displays the name of the loaction and has the correct id to insert into the database.
This all works fine but when I add in my script that will redirect a user if they are not logged in I lose the query string after they have logged in.
The login process works fine and returns the user to addimages.php like it is supposed to but no query string.
I use $_SERVER['self'] for the redirection after the user has logged in.
How come it loses my query string?
All help is gretaly appreciated.
Thanks