I have a generic function which takes u back to the page u come from. But i have a small glitch in that. For example, i go from 1.asp to 2.asp. server variable http_refr now has the url of 1.asp. But, When I do a submit a in 2.asp, it goes to 3.asp and returns to 2.asp again. Now http_refr holds 2.asp. Now, when i press the generic button, i go to 2.asp again and not 1.asp which is what i want. is there any way out of this problem? Suggestions are welcome.