I'm not sure if this would be PHP or JavaScript. But what I want is a script that queries the last pages title. Say once a transaction is complete on PayPal they are then forwarded to my success.php page and on it I will have text and I want it to contain the title of the PayPal completion page.
You can keep the record of it in $_SESSION. You need to add that to every single page. $_SESSION['lastpage'] = "Last Page Title"; PHP: And then you can display like that: echo "You were previously reading our " . $_SESSION['lastpage'] . " page."; PHP:
I guess I didn't explain in a good way. You need to put the code $_SESSION['lastpage'] = "Last Page Title"; to all of your pages with your own page title so you need to change the "Last Page Title" to whatever your page title is.