Using Site-wide Variables?

Discussion in 'Integration' started by Mike Kade, Sep 20, 2003.

  1. Mike Kade

    Mike Kade Guest

    Hi.

    The non-aMember section of my website uses a random 8-digit number to track users - the variable is passed through the URLS as "whatever.php?cid=12345678".

    However, on the template pages such as login.html and member.html, the Smarty system is used, and I cannot get the "cid" variable that I have in the URL bar to echo onto the page, so that variable can be passed to the member pages. I'm wondering how you print $_GET variables to print on the HTML page in the smarty templates.

    I've tried {php} echo $cid; {/php} and {$cid}, I even placed

    $cid - $_GET["cid"];

    into the login.php and member.php script themselves.

    Is this possible?
  2. alex-adm

    alex-adm Guest

    Mike,
    use {$smarty.request.cid}

Share This Page