- Code: Select all
<?php
echo "<div align='center'>";
echo $_SESSION['FirstName'] . " " . $_SESSION['LastName'] . "<br />";
echo $_SESSION['System'] . "<br /><br />";
echo "</div>";
?>
I have two pages that link to this page. When the first page hits this one, I get this output:
- Code: Select all
"; echo $_SESSION['FirstName'] . " " . $_SESSION['LastName'] . "
"; echo $_SESSION['System'] . "
"; echo ""; ?>
as if the site was skipping over the "<?php"
I pulled the "div align" code out of the php script and bookended the script with it. When I do this, I get this output, centered as it should:
- Code: Select all
"; echo $_SESSION['System'] . "
"; ?>
When the second page goes back to my troubled script, it works wonderfully.
Y'all are sure a talkative bunch