Welcome to WebmasterWorld Guest from 188.8.131.52
I later need to assign a numeric value to their choice, but rather than doing multiple ifs
if($Fruit == "apples")
$FruitValue = 120;
elseif ($Fruit == "oranges")
$FruitValue = 80;
is there a way to do this in one go, without all the ifs?