I was wondering if it is possible to edit css properties on a onchange event.
My HTML + Script
    <div class="Content">
        <input id="ColorSlider" type="range" min="0" max="360" value="25" onchange="showValue(this.value)"/>
        <div id="ColorViewer">
            Color value = 25
        </div>
        <script>
            function showValue(newValue){
                document.getElementById("ColorViewer").innerHTML= "Color value = " + newValue;
            //something here that sends the value to the css file
}
And my CSS, which is now receiving session variables from a different PHP file
<?php
header('Content-type: text/css');
    session_start();
    $CssBorder = $_SESSION['CssBorder'];
    $CssH1BackgroundColor = $_SESSION['CssH1BackgroundColor'];
?>
Is it possible to send a variable ( maybe through PHP session ) to the CSS file. and change the color of the HTML border?
For clearing purpose, I want my css file external.
 
     
     
     
    