Forum Moderators: coopster

Message Too Old, No Replies

Navigation link back to referer

keeping new variable over following pages

         

wheelie34

8:28 am on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a result set generated by a variable passed from one page to a review section that I wrote, the page passing the variable has a 10 letter/number name (including .html) IE abcde.html there is no way I can add that page name to the passed variable on the fly so on the results page I am using

$ref=@$HTTP_REFERER;
$truepageref = substr($ref, -10);

to build a link back to the original page, BUT when I go to the next page of results, the back link (I want it to go to the original page) goes back to the page it just came from IE the first results set. Originally I was using javascript history -1 but now too many results on one page so I have split them then this problem showed its head.

The original page is created in cgi using a template, I can get it to write most things there to use in php BUT cant get the page name from it.

How do I keep $truepageref as a permanent change to $ref for the next pages?

scriptmasterdel

9:59 am on May 5, 2006 (gmt 0)

10+ Year Member



Have you tried setting it to a session variable?