- Duplicate all html and php files into a new folder named from the corresponding language(Means there will be an index.php and a vie/index.php and so on), then just create a link between the two.
- Or use a php if...else like this:
Code: Select all
if($_GET['lang']=='eng'){
//ALL the code in PHP and HTML in English
<html><head></head><body>...</body></html>
}
else{
//ALL the code in PHP and HTML in Vietnamese
<html><head></head><body>...</body></html>
}Those are 2 ways I'm thinking of. But they both look so "amateur"