Hi I'm trying to get one variable to set itself after an if statement on another variable, but I can't get the syntax right. Please help, this is the code that I've got so far.
$subtype = htmlspecialchars($_POST['subtype']);
if $subtype == ['12m'] {$subprice = 273.78}
elseif $subtype == ['6m'] {$subprice = 152.10}
elseif $subtype == ('1m') {$subprice = 30.42}
Any help would be greatly appreciated!