$langset = $_POST['langset'];
if (!isset($langset)) {
echo '
<form name='languset' method='post' action='index.php'>
<select name="langset">
<option value="lt" selected="selected">Lietuvių</option>
<option value="en" >Anglų</option>
</select>
<input type='submit' name='submit_lang' value='Keisti'>
</form>
';
}
else
{
setcookie("lang", $langset, time()+3600);]
echo"Kalba pakeista";
}