473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Selecting a language in a php page

Hello would you please help me?

I am still learning web design and would like to change the way a web site chooses the language for the user. At the moment I have an initial page where they select the language which then runs on all subsequent pages. I would like to skip that first page and have it so that when they click on the language flag or bullet the current page changes the language. Would any one have the script for this please.
Here is a link to the site before any changes.

my current web site

thank you
May 24 '07 #1
4 1277
Motoma
3,237 Expert 2GB
Hello would you please help me?

I am still learning web design and would like to change the way a web site chooses the language for the user. At the moment I have an initial page where they select the language which then runs on all subsequent pages. I would like to skip that first page and have it so that when they click on the language flag or bullet the current page changes the language. Would any one have the script for this please.
Here is a link to the site before any changes.

my current web site

thank you
You will probably need Javascript for this task, I will move you to that forum.
May 24 '07 #2
acoder
16,027 Expert Mod 8TB
Hello would you please help me?

I am still learning web design and would like to change the way a web site chooses the language for the user. At the moment I have an initial page where they select the language which then runs on all subsequent pages. I would like to skip that first page and have it so that when they click on the language flag or bullet the current page changes the language. Would any one have the script for this please.
Here is a link to the site before any changes.

my current web site

thank you
For this, you will need ajax. See the AJAX tutorials in the Offsite Links sticky thread. Since you already have the php, it's just a case of making the request and changing items on the current page.

Post your code if you get stuck.
May 25 '07 #3
For this, you will need ajax. See the AJAX tutorials in the Offsite Links sticky thread. Since you already have the php, it's just a case of making the request and changing items on the current page.

Post your code if you get stuck.
Hello thank you for your reply, I think I am now out of my depth.... Do I need a program for this or is it just a form of script. ( I am also not good a tech speak so I am sorry if I confuse you with the wrong choice of words.

I apreciate your offer of help with the script but I honestly now do not knoe where to start.
May 28 '07 #4
acoder
16,027 Expert Mod 8TB
Hello thank you for your reply, I think I am now out of my depth.... Do I need a program for this or is it just a form of script. ( I am also not good a tech speak so I am sorry if I confuse you with the wrong choice of words.

I apreciate your offer of help with the script but I honestly now do not knoe where to start.
Have you seen the tutorials on AJAX in the Offsite Links thread? The javascript makes a request to your php script. The PHP script returns a response which the javascript code should deal with, i.e. change the language. You may have to alter a few things, e.g. give the parts which contain the language text ids so that you can access them using javascript. In this way, the changes are made client-side without having to refresh the page.
May 28 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: mpinsley | last post by:
We are a software company that provides Inventory & Procurement mangement to the hospitality industry. For the past twenty years we have been using Progress Software as both the development...
7
by: Rodney King | last post by:
Hi, I have developed an ASP page which dynamically displays a list of checkbox options based on a SQL statement. Here is my code: <div style="OVERFLOW:auto; Height: 150px"> <table> <% dim...
3
by: Simon G Best | last post by:
Hello! The C++ standard library provides facilities for finding out the sizes (and other such stuff) of numeric types (::std::numeric_limits<>, for example). What I would like to do is to...
2
by: mpinsley | last post by:
We are a software company that provides Inventory & Procurement mangement to the hospitality industry. For the past twenty years we have been using Progress Software as both the development...
1
by: sneha123 | last post by:
There will be some 20 questions and for each question there will be 4 choices.what i want to do is to select multiple answers by clicking the checkbox. i m using asp.net,vb.net pls help me we...
1
by: Bob Loveshade | last post by:
I am looking for an example that shows how to select and highlight multiple rows in a DataGrid. My DataGrid is part of a Web User Control which is contained in an ASPX page. I haven't been...
2
by: areef.islam | last post by:
Hi, I am kinda new to javascript and I am having this problem with selecting multiple options from a select tag. Hope someone can help me out here. here is my code...
5
by: stephen | last post by:
Hi, I have a place holder and I have a checkboxlist in it? why do i get a "System.NullReferenceException: Object reference not set to an instance of an object." error why I try to get the...
4
by: hemricc2 | last post by:
I have the following simple page. I need to select the BARCODE text field everytime the page refreshes. I know this is pretty basic, but I'm just starting with Javascript. Thanks for the help. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.