Hi all,
I am using the following PHP to store and output a URL variable…
<?php
if(isset($_GET['media'])){
$_SESSION['media']=strip_tags($_GET['media']);
}else{
$_SESSION['media']="DEFAULT";
}
?>
Media code: <?php echo strip_tags($_SESSION['media']); ?>It works fine unless I put the first set of php tags in another template in which case I get this error…
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: _SESSION
Filename: libraries/Functions.php(659) : eval()'d code
Line Number: 19Any ideas?