Buyur:
<html>
<body>
<h1>Hesapla</h1>
<form name="frm-pin" method="post" action="a.php">
<input type="hidden" name="mode" value="PinRequest" />
<label class="w3-text-green"><b>maliyet</b></label>
<input name="maliyet" onchange="calculateAmount(this.value)" required value="" />
<br>
<label><b>perakende</b></label>
<input name="tot_amount1" id="tot_amount1" type="text" readonly><br>
<label><b>web</b></label>
<input name="tot_amount2" id="tot_amount2" type="text" readonly>
<script>
function calculateAmount(val) {
var tot_price2 = val * 2;
var tot_prica1 = val * 3;
var divobj = document.getElementById('tot_amount1');
var divobj2 = document.getElementById('tot_amount2');
divobj.value = tot_price2;
divobj2.value = tot_prica1;
}
</script>
<body>
</html>
Sen adamın ham maddesisin

)