/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- Included files contain, variable with their values --> <!-- Example url: index.php?lang=en --> <?php $lang=$_SESSION['lang']; } else { $lang='bg'; } } else { $lang = $_GET['lang']; } if ($lang=='bg') { $_SESSION['lang'] = 'bg'; require('bg.php'); } else { $_SESSION['lang'] = 'en'; require('en.php'); } $_SESSION['lang']=$lang; echo "$home"; ?>
Comments
