Here's one note, Jake...
----- Original Message -----=20
From: skaill=20
To: web...@li...=20
Sent: Thursday, September 09, 2004 8:25 AM
Subject: [Web-erp-developers] Multilanguage - note
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 |