From: skaill <sk...@ro...> - 2004-09-09 12:25:06
|
Select/Option statements in html may create confusion while doing the = Multilanguage. The way to handle them is to not change the if tests or = the values of the options, only change what is displayed. e.g. echo '<SELECT NAME=3D"Ostg_or_All">'; if ($_POST["Ostg_or_All"]=3D=3D'All'){ echo '<OPTION SELECTED Value=3D"All">' . _('Show All') . ' ' . $Type . = ' ' . _('in the date range'); echo '<OPTION Value=3D"Ostdg">' . _('Show Only Un-matched') . ' ' . = $Type; } else { echo '<OPTION Value=3D"All">' . _('Show All') . ' ' . $Type . ' ' . = _('in the date range'); echo '<OPTION SELECTED Value=3D"Ostdg">' . _('Show Only Un-matched') . = ' ' . $Type; } echo '</SELECT></TD></TR>'; Notice the if is still 'All' and so is the Value for the option. Steve |