$_SERVER['HTTP_REFERER'] will track the previous page. please note, that if you use this, it is open to Cross-site Scripting injection, so it should be evaluated/scaned for good params, as in $page = $_SERVER['HTTP_REFERER']; if($page == 'aboutus.asp') { //do this } else { echo "bad request"; } Sudhakar wrote: > > please provide the code by which i will be able to track the source > of the previous page.