?php session_start(); header('Content-type: text/html; charset=utf-8'); $lang=$_SESSION['lang']; if (isset($_POST['language'])) { if ($_POST['language'] == 'English') { $_SESSION['lang'] = "en"; } else if ($_POST['language'] == 'Spanish') { $_SESSION['lang'] = "sp"; } else { $_SESSION['lang'] = "fr"; } $lang = $_SESSION['lang']; } ?>