in reply to Get anchors from CGI?
According to the Mouse book, anchors (fragment identifiers) aren't sent to web servers. You might have better luck with some JavaScript that sends a history -1 event (yuck), or the REFERER environment variable. Neither are completely reliable, but the latter seems preferable (if you want to avoid double submits).