2 PHP varibles side by side?

Discussion in 'PHP' started by tnomal, Mar 23, 2009.

  1. #1
    I'm not much of a PHP programmer but I need to add 2 PHP tracking codes. Can I do it side-by-side? Here's an example of what I'm talking about.


    hxxp://cpanetwork.com/ki5555/&amp;subid3=<?php echo $var; ?><?PHP echo $arid;?>
     
    tnomal, Mar 23, 2009 IP
  2. joep1978

    joep1978 Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That would be passing one GET variable called subid3 with $var and $arid stuck together

    If you want the other variable to be called arid you'd need to do:-

    hxxp://cpanetwork.com/ki5555/&amp;subid3=<?php echo $var; ?>&amp;arid=<?PHP echo $arid;?>
     
    joep1978, Mar 23, 2009 IP
  3. tnomal

    tnomal Active Member

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thanks for the help!
     
    tnomal, Mar 23, 2009 IP