There comes times when you need to have a common page that you are going to be using for lots of pages. This could be a page that has country codes or lists of subjects etc. You need to refer people back to the previous page. This could also be a page that people might have got to by mistake and you want to allow them to go back a page without using JavaScript. Here is a very simple example.

<%
referer=request.servervariables(“http_referer”)
%>

Click <a href=”<%= referer %>”>here</a> to go to the previous page

I hope that helps.

About Paul Ogier

Paul Ogier has written 202 posts.

Paul Ogier is an IT Guru, Website Developer, and generally a nice guy. He loves code and he loves design.