/    Sign up×
Community /Pin to ProfileBookmark

Lang_id button trick

[B]hallo, on my page i have 3 buttons GEO | RUS | ENG they switch language on my site.. and The URL of them looks like this:[/B]

[CODE]
<a href=”index.php?lang_id=geo”>GEO</a>

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

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

[/CODE]

so, they work fine and switch language of the site.

but i want to make it to do more!

something like this..

forexample, if i navigate to

[B]index.php?page=news&newsid=2&lang_id=geo[/B]

and then when i read this news.. i want to read it in english not in “geo”

so how can i setup the URL of ENG | GEO | RUS buttons?

if i am on i[B]index.php?page=news&newsid=2&lang_id=geo[/B]

and hit ENG button THE URL to be [B]index.php?page=news&newsid=2&lang_id=eng[/B]

instead of [B]index.php?lang_id=eng[/B]

i hope i was clear with my question. THANKS

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @LogicOpinion spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...