dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Last page visited question

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    171

    Last page visited question

    Hi all,
    Is there a way of sending the value of the last page visited...ie. first_page.php?

    Cheers,
    suzy

  2. #2
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Hi!
    You can use a cookie or a session:
    PHP Code:
    <?php
    session_start
    ();
    session_register('pageTracker');
    $oldPage $_SESSION['pageTracker'];
    $_SESSION['pageTracker'] = $_SERVER['PHP_SELF'];

    echo 
    "OLD = " $oldPage " & NewPage = " $_SERVER['PHP_SELF'] . " <br />";
    ?>
    Or the referer:
    PHP Code:
    <?php
    echo $_SERVER['HTTP_REFERER']
    ?>
    Depends on what you want to do.
    NuCleuZ :: PHPVolcano :: Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center