Welcome to WebmasterWorld Guest from 18.104.22.168
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?