I believe you're referring to $_SERVER['HTTP_REFERER'], but no, there isn't one to retrieve any other previous pages.
In fact, the only way this variable will even be filled with data is if the client's browser/gateway passes this information onto the server. This HTTP header can easily be left blank or even falsified.