> I think it is $HTTP_SERVER_VARS['HTTP_REFERER'] Except that the value for this variable isn't always set and can be spoofed. This value should not be relied upon. Oftentimes (though, you'd have to be creative to make this work in a seperate window), what I use to send the user back to where they came from is this:
<a href="javascript:history.back();">Back </a> Chris