I'm trying to load parameters with php(stored in my database) to update my css. After login, I start a session and load css in my header:
<head>
<?PHP
define('THEME', $_SESSION["theme"]);
?>
<link type="text/css" rel="stylesheet" href="./public_html/css/style.php" />
</head>
When I try to access test in style.php it doesn't work:
<?php
header("Content-type: text/css; charset: UTF-8");
switch(constant(THEME)){ something...}
?>
What am I doing wrong? Why can't I access my variable?