Just a quick question about echo

Discussion in 'PHP' started by medialab, Feb 6, 2014.

  1. #1
    Hey Everyone,

    I am new to PHP but learning quickly, I have a php page that I would like to post a conversion pixel in, there is a "order complete" message in an echo statement if the transaction went through, this echo is only called using page.php?msg=1 users visit page.php all the time, but only when the order is complete does the echo work.

    My question is, if I place a conversion pixel inside of the echo statement, will it trigger every time the page loads? Or only when the msg=1? I know the text doesn't show up, but I am unclear as to wether it is just hidden from view but still there, or not even pulled onto the page from initial load.

    Thanks in advance for your help!
     
    Solved! View solution.
    medialab, Feb 6, 2014 IP
  2. #2
    It's only pulled when the condition is true.
     
    PoPSiCLe, Feb 6, 2014 IP