php - How to run a function within an echo call -


It's a quick but simple question, I'm having a bad day and do not know how:

< P> What do I need to do ...

I am checking the PMD in the URL if it is echoed like this:

  & lt ;? Php if (isset ($ _gET ['pmd'])) {echo "and 
Jerusalem walls; Your name will now appear on our virtual wall. & Lt; br & gt; ; Br & gt; You can also go to the latest news of Israel by going to our news feed below. & Lt; / strong & gt; & lt; / p & gt; & lt; / div & gt; "; } Else {etc ...

Why do I need to include it as if to close a tracking pixel.

  & lt; Img src = "url.com?cid=12345&aid=1234&oid=<?php Echo MT_Rend () ;? & gt; volume = 1" height = "1" width = "1" / & Gt;  

What do I have to do:

  & lt ;? Php if (isset ($ _gET ['pmd'])) {echo "div class = \" response \ "& gt; & gt; style = \" width: 350px; Height: 200px; Vertical-Align: Middle; Thank you for working as a watchman on the walls of the \ "& gt; strong> Jerusalem walls; Your name will now appear on our virtual wall. & Lt; br & gt; ; Br & gt; You can also go to the latest news from Israel by visiting our news feed below. & Lt; / strong & gt; & lt; / p & gt; & lt; br / & gt; & lt; img Src = "url.com?cid=12345& Help = 1234 and OID = & lt ;? Php echo mt_rand (); ? & Gt; And volume = 1 "height =" 1 "width =" 1 "/> "; } Else { 

What do I need to do to bring that mt_rand () function to the fire?

Thank you,

Matt

You can use composition:

  & lt ?? Php if (isset ($ _GET ['pmd'])):? & Gt; & Lt; Div class = "reaction" & gt; & Lt; P style = "width: 350px; height: 200px; vertical-align: center;" & Gt; & Lt; Strong & gt; A & amp; Quot; Thanks for working as a watchman Wall & amp; Quot; Of Jerusalem! Your name will now appear on our virtual wall. & Lt; Br> & Lt; Br> You can also go to our news feed below and go to the latest news in Israel. & Lt; / Strong> & Lt; / P & gt; & Lt; Br / & gt; & Lt; Img src = "url.com?cid=12345&aid=1234&oid=<?php Echo MT_Rend () ;? & gt; and volume = 1" height = "1" width = "1" / & Gt; & Lt; / Div & gt; & Lt ;? Php else:? & Gt; Etc. & lt ;? Php endif; ? & Gt;  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -