$amount = $_POST[‘סכום’]; $product = $_POST[‘מוצר’];
if (!empty($amount) && !empty($product)) { $result = $amount * $product; return $result; } else { return “”; }