Thread: HTML within PHP
View Single Post
Old 12-24-2007, 04:58 AM   #2 (permalink)
nasty.web
Contributing Member
 
Join Date: 07-24-06
Posts: 625
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
just echo the HTML

Code:
<?php $country = wp_ozh_getCountryName(0) ; switch ($country) { case "Canada" : echo '<a target="_blank" href="http://www.affiliate.com/fs-bin/click?id=referrer_ID"><IMG alt="Canadian Banner" border="0" src="http://images.affiliate.com/outsidebanners/Homepage-120X600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.affiliate.com/fs-bin/show?id=referrer_ID">'; break; default : echo '<a target="_blank" href="http://www.affiliate.com/fs-bin/click?id=referrer_ID"><IMG alt="American Banner" border="0" src="http://images.affiliate.com/outsidebanners/Homepage-120X600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.affiliate.com/fs-bin/show?id=referrer_ID">'; } ?>
HTH
nasty.web is offline   Reply With Quote