This question already has an answer here:
Ya here is my code.
<?php print "<a href=\"http://example.com/ea.php?v=".urlencode($url)."&t=".$p."\"><?php echo $this->lang('learn_cn')?></a>" ?>
It comes with blank nothing show.
<?php echo $this->lang('learn_cn')?>
What is the correct way to make this work. TY
</div>
You're already in the process of print
ing out HTML, so just escape that part like you did in the href
:
<?php print "<a href=\"http://example.com/ea.php?v=" . urlencode($url) . "&t=" . $p . "\">" . $this->lang('learn_cn') . "</a>" ?>