For some landing page templates there is code like this:
<?php
$Name = 'FOO';
$Title = 'FooTitle';
$Date = '00/00/0000';
$Time = '00:00';
$Time2 = 'AM';
$AttendLink = 'http://linktoattend.html';
$LogoLink = 'http://www.google.com';
$Logo = 'http://www.domain/images/image.jpg';
$LWidth = '';
$LHeight = '';
$Event = '<p class="indent">foo</p>';
$List = '<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li><strong class="red">As an added bonus:</strong>foo</li>
</ul>';
$Offer = '<p class="indent">foo</p>';
$Presenter = '<p class="indent"><a href="<?php echo $Link ?>">Link!</a></p>';
?>
For brevity the area of concern is this
<html>
<head>
<title><?php echo $Title ?></title>
</head>
<body>
<p><?php echo $Presenter ?></p>
</body>
</html>
where the variable “$Presenter” is outputting “” as the link. I understand why it’s doing this but not how to fix it. How do I include a variable “$Link” inside another variable “$Presenter”? Is there a more semantically correct way to do this?
Thank you
You have nested
<?php ?>tags.Change to:
Or