Results 1 to 4 of 4
  1. #1
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    help question Current Page Variable?

    Is there a variable which contains the name of the current page?

    I have a "contact support" link in the footer of each page and I would like to add the name of the current page to the support request so that I know the page they were on when they had issues.

    Thanks,

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Current Page Variable?

    $current_page_base
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: Current Page Variable?

    Works great!

    Thanks,

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Current Page Variable?

    I have been looking at the contents of various variables while trying to uniquely identify the current page,
    eg:
    PHP Code:
    <?php 
    echo '$current_page_base = '$current_page_base.'<br />';
    echo 
    '$current_page = '$current_page.'<br />';
    echo 
    '$_SERVER[\'REQUEST_URI\'] = '$_SERVER['REQUEST_URI'].'<br />';
    echo 
    '$_GET[\'id\'] = ' $_GET['id'].'<br />';
    echo 
    '$_GET[\'page\'] = ' $_GET['page'].'<br />';
    echo 
    '$cPath = ' $cPath.'<br />';
    */
    ?>
    $_GET['id'] and $_GET['page'] are always empty, what am I missing?

    thanks
    Steve

 

 

Similar Threads

  1. v154 Naming a global variable the same as a SESSION, GET or POST variable
    By torvista in forum General Questions
    Replies: 5
    Last Post: 6 Dec 2015, 11:11 AM
  2. Current Page Base
    By Berserker in forum General Questions
    Replies: 2
    Last Post: 24 Aug 2010, 11:03 PM
  3. Replies: 8
    Last Post: 10 Jan 2010, 08:04 PM
  4. Need Current Page Number on Product List Page
    By kwright in forum General Questions
    Replies: 1
    Last Post: 21 Oct 2008, 11:56 PM

Posting Permissions

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