I'm new to PHP and have been playing with sessions.
Below is what I'm trying to achieve but as it stands I can't get <?php echo ($_SESSION['run']);?> to populate in the if statement. I know it's because it's already set in a php command and uses hyphens. Is there a simple command I can use to get it included?
Code:
<?
if(isset($_SESSION['run']))
$_SESSION['run']='<tr class="row"><td class="arrow"><img src="images/arrow4.png"></td><td><?php echo ($_SESSION['run']);?></td></tr>';
else
$_SESSION['run']='<tr class="row"><td class="arrow"><img src="/images/add1.png"></td><td><a href="/">Run...</a></td></tr>';
echo ($_SESSION['run']);
?>
Bookmarks