I'm creating a php page and I'm using include statements to load the contents but it's having a bad effect on the output. Here are my files:
index.php:
<div class="sectionSpacer"></div>
<?php include("newsection.php"); ?>
<div class="sectionSpacer"></div>
newsection.php:
<div class="sectionInner">
<div id="details">
<?php echo $details; ?>
</div>
</div>
$details:
My email address is <?php echo $my_email; ?>
The problem is that while the div is being displayed, $details isn't echoing out the email address on the index page. How can this be resolved?
index.phppage