The answer is:
[insert_php]
if(isset($_GET[‘submit’])){
	$result1 = $_GET[‘num1’];
	$result2 = $_GET[‘num2’];
	$operator = $_GET[‘operator’];
	switch($operator){
	case None:
	echo “Select a method”;
	break;
	case Add:
	echo $result1 + $result2;
	break;
	case Sub:
	echo $result1 – $result2;
	break;
	case Mult:
	echo $result1 * $result2;
	break;
	case Div:
	echo $result1 / $result2;
	break;
}
}
[/insert_php]
