tää on index.php session_start(); $_SESSION['thisOpacity'] = $_POST['thisOpacity']; if (!empty($_SESSION['thisOpacity'])) { $opacc = $_SESSION['thisOpacity']/100; $mozopac = str_replace(",", ".", $opacc); $explopac = $_SESSION['thisOpacity']; } else { $mozopac = "0.5"; $explopac = "50"; } ?>