I\'m creating a basic PHP calculator that lets you enter two values and chose your operator then displays the answer. Everything is working fine except it\'s not outputting
You also need to put the [== 'add'] math operation into quotes
if($_POST['group1'] == 'add') { echo $first + $second; }
complete code schould look like that :