I *Believe* this is a bug. If not, just tell me.
If you create a form with the field name of "language" or "lang" then it won't store your input, rather it will store the user's language to the database.
For example, if I create a Select Box with the field name of "language" with the following inputs:
English=English
French=French
Then I store the result to the database, my browser's locale will be stored instead: "en_US" or "en" for lang.
If you change the field name (and database column) to another name like "lang_selection" then it works fine.
If you create a form with the field name of "language" or "lang" then it won't store your input, rather it will store the user's language to the database.
For example, if I create a Select Box with the field name of "language" with the following inputs:
English=English
French=French
Then I store the result to the database, my browser's locale will be stored instead: "en_US" or "en" for lang.
If you change the field name (and database column) to another name like "lang_selection" then it works fine.
Hi lowrykun,
It probably is a bug - or at least an untrapped error. I've not seen it before and don't know where the value gets substituted, possibly lang=xx in the form URL would do it.
It's always safer to avoid commonly used Joomla!, PHP or MySQL terms as you can get unexected results.
Bob
It probably is a bug - or at least an untrapped error. I've not seen it before and don't know where the value gets substituted, possibly lang=xx in the form URL would do it.
It's always safer to avoid commonly used Joomla!, PHP or MySQL terms as you can get unexected results.
Bob
This topic is locked and no more replies can be posted.