The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

FF - IE7 problem with form fieldset

Hi,

I have a multilingual website with three languages. I use a form with checkboxes to switch between languages. There is no "submit" button, the language switches when the user clicks on one of the three checkboxes. This works great in FF but does not work in IE7. This is the first time I am trying to do this so I am not sure where the problem is.

Since the HTML doesn't (cannot) change languages, it's something in the PHP.

Also, beware of using anchors to change language. Some people use nasty browsers or browser extentions whose job is to click on every link on a page (so that if the user were to actually click on that link themselves, they don't need to wait for DNS request)... meaning the last language selectable might always appear for those people.

I think the php works fine because I can actually switch the languages in FireFox by just clicking in the checkbox and then the languge switches. In IE when I click in the checkbox, nothing happens BUT in IE I can click on the flag or on the word (which is also in the anchor tag) and then the script switches the language. So, really, my questions is, why does IE not switch when I check the checkbox?

I am actually thinking about getting rid of the checkboxes, and doing it all with css. So have the entire language button be one link with a custom displayed checkmark. That may work better and be easier for cross browser stuff

I've never seen proper HTML, as seen by a browser, having any non-html code in it. PHP belongs in the dirty back end on the server side where it does its dirty work. It should never appear in the source.