Jump to content

URL - how to?


logicopinion

Recommended Posts

Hello, i have a site on three languages: 1. GEORGIAN 2. ENGLISH 3. RUSSIAN

 

so, i habe three buttons on the top of page. Like : GEO, ENG, RUS,

 

The URL of them looks like this:

 

<a href="index.php?lang_id=geo">geo</a>

<a href="index.php?lang_id=eng">eng</a>

<a href="index.php?lang_id=rus">rus</a>

 

and it works fine.

 

i have other problem/thing to solve.

 

forexample: if i navigate to page having URL

 

index.php?page=news&news_id=123&lang_id=geo

 

so its in georgian Language.

 

and maybe someone want to swich this news in other lagnuage... so if he/she clicks ENG or RUS he/she will be navigated to main INDEX.php page. because the URL of ENG and RUS buttons are index.php?lang_id=rus/eng

 

so how can i make THE url of Swiching buttons to be random depending on what page i am on

 

if i am on index.php?page=news&news_id=123 swiching button URL to change from index.php?lang=geo to

 

index.php?page=news&news_id=123&lang_id=eng/rus/geo what language i am on.

 

hope its clear what i mean.

 

thanks a lot in adavance

 

 

Link to comment
https://forums.phpfreaks.com/topic/101855-url-how-to/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.