Page 1 of 1

need help on language selection

Posted: Mon May 05, 2008 6:45 am
by jeevan_y21
Hi to all,

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()"> &nbsp;&nbsp;
<input type="image" name="french" value="fr" width ="15" height="15" src="images/french.gif" onClick="getcookie1()"> &nbsp;&nbsp;
<input type="image" name="german" value="de" width="15" height="15" src="images/german.gif" onClick="getcookie1()"> &nbsp;
 

Code: Select all

<script type="text/javascript" language="javascript">
   function getcookie1()
   {
   <?php   setcookie("language","en"); ?>
   }
 
   
</script>
and i am calling the "language" cookie in another file. Its not working Huh. can anyone please help me. as its very urgent please help me out

Re: need help on language selection

Posted: Mon May 05, 2008 9:13 am
by yacahuma
check this other post
viewtopic.php?f=1&t=82220