Computer Jobs - Find services - Debt Consolidation - Online Advertising - WoW Gold

PDA

View Full Version : How to get adress bar link?


Shile
Jun 16th 2007, 3:45 am
I have 4 language web page...php with include functions.
I want that each page can be reched in any language directly.When I am on english version just to click on italian flag and to get italian version.
Now I can only go ?lang=ita which redirects me few pages back and I need (my visitors) to again browse to desired page.

Is there a script that will get adress bar content and just add ?lang=ita at its end.In that way current page will just change language.Thats my goal.

TNX for answers.

krt
Jun 16th 2007, 4:01 am
It should be easy to change your script so that it works like that. Change the link to add ?lang=ita at the end by removing ../, /, or whatever is in front of it. And make sure the code to act on it is invocated. An alternative is to keep the links the same and in the code used to set to language, set a redirect to the referer (the page where the user clicked the link).

Shile
Jun 16th 2007, 5:22 am
Well..my visitors are in the page www.my web site.com/?part=12
By default its in english....
To go at italian version there must be added &lang=ita ...
If I put to href &lang=ita they get directed to www.my web site.com/?lang=ita which is few pages back in navigation..

I need that &lang=ita is just added to www.my web site.com/?part=12 ... so I get www.my web site.com/?part=12&lang=ita