Why doesn't this work?
I choose English and it doesn't do anything... neither does Norsk work. Anyone help please, thanks.
<?php
//nodag = Norwegian day
//endag = English Day
// dag = day
if(!isset($GET_['ok'])) { //start if
?>
<form action="" method="get">
<select name="lan">
<option value="eng">English</option>
<option value="no">Norsk</option>
</select>
<input type="submit" name="ok" value="Ok">
</form>
<?php
}// end if
elseif($GET_["lan"] = "no") { //start elseif
$endag = date("l");
switch($endag) { // start switch
case "Monday";
$nodag = "Mandag";
break;
case "Tuesday";
$nodag = "Tirsdag";
break;
case "Wednesday";
$nodag = "Onsdag";
break;
case "Thursday";
$nodag = "Torsdag";
break;
case "Friday";
$nodag = "Fredag";
break;
case "Saturday";
$nodag = "Lordag";
break;
case "Sunday";
$nodag = "Sondag";
default:
$nodag = "ERROR";
} // end switch
echo $nodag;
} // end elseif
else { // start else
$endag = date("l");
echo $endag;
}// end else
?>