"; } if(is_int($_POST['wood'])){ $ws = $_POST['wood']; $w = $ws *= 400; } else { //echo "The value you entered for woodcutters wasn't a valid number!
"; } if(is_int($_POST['farm'])){ $fs = $_POST['farm']; $f = $fs *= 400; } else { //echo "The value you entered for farmers wasn't a valid number!
"; } $t = $m + $s + $w + $f; echo $t; if ($t >= $gold){ echo $t; } } ?>