I want a simple redirect depending on the value of the select.
if french / if english meta refresh to this url.
The form
Code: Select all
Language :
<form action="<?php echo $PHP_SELF;?>" method="post">
<select name="lang" onchange="this.form.submit()">
<option value="english">English</option>
<option value="francais">Français</option>
</select>
</form>
Code: Select all
if(isset($lang)){any help would be welcome.
my actual code (obviously not working) is this
Code: Select all
$lang=$_REQUEST['lang'];
if($lang='francais'){
print "<meta http-equiv='refresh' content='0; url=http://my-url-here.php'>";
}