I need to get the post ID of the last visited page.
I am creating a Get a Quote form for products listed on the website. I'd like the form page to have a heading "Quote for PRODUCT X". Product X being the product the user was just viewing.
If I can get the post ID of the last page I should then be able to pull in the post title.