This is a quick but simple question. I am having a bad day and don’t know how to do this:
What I need to do is this…
I am checking for PMD in the url if so echo this:
<?php
if ( isset($_GET['pmd']) ) {
echo"<div class=\"response\"><p style=\"width:350px; height:200px; vertical-align:middle;\"><strong>Thank you for acting as a "watchman on the walls" of Jerusalem! Your name will now appear on our virtual wall.<br><br>You can also catch up on the latest news from Israel by visiting our news feed below.</strong></p></div>";
}else { etc...
What I need to include within that is an image like such that is firing off a tracking pixel.
<img src="url.com?cid=12345&aid=1234&oid=<?php echo mt_rand(); ?>&quantity=1" height="1" width="1" />
What I would like to have is:
<?php
if ( isset($_GET['pmd']) ) {
echo"<div class=\"response\"><p style=\"width:350px; height:200px; vertical-align:middle;\"><strong>Thank you for acting as a "watchman on the walls" of Jerusalem! Your name will now appear on our virtual wall.<br><br>You can also catch up on the latest news from Israel by visiting our news feed below.</strong></p>
<br />
<img src="url.com?cid=12345&aid=1234&oid=<?php echo mt_rand(); ?>&quantity=1" height="1" width="1" />
</div>";
}else {
What do I need to do to get that mt_rand() function to fire?
Thanks,
Matt
You could use this syntax instead: