-4

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

nadya
  • 27
  • 3

1 Answers1

0

You're already in the process of printing 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>" ?>
faino
  • 3,194
  • 15
  • 17