I am new to php, i am developing a multilingual webapplication using php,Mysql. At the login of the site the users need to click on the countries flag. sothat the content can change according to the countries/language click. i did the following stuff and i struck up here
Code: Select all
<input type="image" name="english" value="en" width="15" height="15" src="images/english.gif" onClick="getcookie1()">
<input type="image" name="french" value="fr" width ="15" height="15" src="images/french.gif" onClick="getcookie1()">
<input type="image" name="german" value="de" width="15" height="15" src="images/german.gif" onClick="getcookie1()">
Code: Select all
<script type="text/javascript" language="javascript">
function getcookie1()
{
<?php setcookie("language","en"); ?>
}
</script>