Posts: 2,311
Name: Keith Marshall
Location: West Hartford, CT
|
I would use a switch construct because if the user's browser language is not used in your site, you can set english as the default.
PHP Code:
<?php switch ($lang = strtolower($_GET['lang'])) { case 'es': include('./lang/es.php'); break; default: include('./lang/en.php'); break; } ?>
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|