Cara menggunakan script simulasi kredit html

Create a simulation of credit with php script - Pingin tahu cara buat simulasi kredit motor tanpa database, Kunjungi dan pelajari yang satu ini. want to know how to create a simulation of credit by using a php script, well ... I will give the following information. is a simple way to make a simulation of credit with a php script without the need to use complicated database.

Cara menggunakan script simulasi kredit html

So you all must be able to apply on the web or on your personal blog. First we have to do in making a simulation of this credit is to create a form that will be used to enter data that we count. Credit Simulation later we can use to calculate the motor loans, car loans, mortgages and so forth.

By using HTML script or PHP script you created the form that I said above. You may name the form with the name form.php / form.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body,td,th {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
}
.style1 {color: #FFFFFF}
.style3 {
 color: #FFFFFF;
 font-size: 14pt;
 font-weight: bold;
 font-family: Helvetica, sans-serif;
}
-->
</style></head>
<?php
$harga=$_GET['pkkpjm'];
$dp=$harga*0.01;
?>
<body>
<form id="form1" name="form1" method="post" action="Calculate.php">
  <table width="460" border="0" cellspacing="1" cellpadding="3" style=" border-width: thick" bordercolor="#000000">
    <tr>
      <td colspan="6" style="background: black; padding: 0cm 7.4pt 0cm 7.4pt; width: 460pt;"><div align="center" class="MsoNormal" style="margin: 1pt; text-align: center;"> <span class="style1"><span class="style1"><b><span style="font-family: Helvetica, sans-serif; font-size: 18pt;">FORM SIMULASI KREDIT MOBIL </span></b></span></span></div></td>
    </tr>
 <tr>
      <td width="191"><strong>Harga Mobil</strong> </td>
      <td width="297"><input name="harga" type="text" id="harga" value="<?php echo $harga ; ?>" size="30" />
        ,00</td>
    </tr>
    <tr>
      <td width="191"><strong>Pokok Pinjaman</strong> </td>
      <td width="297"><input name="harga" type="text" id="dp" value="<?php echo $dp ; ?>" size="30" />
        ,00</td>
    </tr>
    <tr>
      <td><strong>Bunga Per Tahun </strong></td>
      <td><input name="dp" type="text" id="tahun" value="<?php echo $tahun; ?>" size="10" />
        % <strong>[ DP di atas adalah lebih dari 20% ] </strong></td>
    </tr>

    <tr>
      <td><strong>Lama Kredit </strong></td>
      <td><select name="tahun" id="tahun">
          <option value="0">-- Piilih Bulan --</option>
          <option value="1">1</option>
          <option value="2">2</option>
          <option value="3">3</option>
          <option value="4">4</option>
          <option value="5">5</option>
        </select>
        Tahun</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="Kalkulasi" /></td>
    </tr>
 <td colspan="6" style="background: black; padding: 0cm 7.4pt 0cm 7.4pt; width: 460pt;"><div align="center" class="MsoNormal" style="margin: 1pt; text-align: center;"> <span class="style1"><span class="style3">Created By <a href="http://daftarharga.biz">DaftarHarga.Biz</a></span></span> </div></td>
    </tr>
  </table>
</form>
</body>
</html>

After you create a form with the correct syntax should you make a php script, a script that you create a script that serves to calculate the data that you enter on form.php. You may name the following php script with the name Calculate.php. Please copy / paste the following script that I made this.

<html>
<head>
<title>Hasil Simulasi Kredit</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style3 {font-weight: bold}
.style5 {
 color: #FFFFFF;
 font-size: 18px;
 font-weight: bold;
}
-->
</style>
</head>

<body>
<?php
$harga=$_POST['harga'];
$uang_muka=$_POST['dp'];
$tahun=$_POST['tahun'];
?>
Simulasi Kredit Kendaraan<br>
<br>
<table width="460" border="0" cellspacing="1" cellpadding="3" style=" border-width: thick" bordercolor="#000000">
    <tr>
      <td colspan="6" style="background: black; padding: 0cm 7.4pt 0cm 7.4pt; width: 460pt;"><div align="center" class="MsoNormal" style="margin: 1pt; text-align: center;"> <span class="style1"><span class="style1"><b><span style="font-family: Helvetica, sans-serif; font-size: 18pt;">HASIL SIMULASI KREDIT</span></b></span></span></div></td>
    </tr>
<tr>
<td width="272"><strong>Harga Mobil </strong></td>
<!-- <?php $hargakoma=number_format($harga); ?> -->
<td width="328" align="right"><?php echo "$hargakoma";?></td>
</tr>
<tr>
<td><strong>Uang Muka</strong></td>
<!-- <?php $uang_mukakoma=number_format($uang_muka); ?> -->
<td align="right"><? echo "$uang_mukakoma" ; ?></td>
</tr>
<tr>
<td><strong>Pokok Pinjaman</strong></td>
<?php $pokok_pinjaman=$harga-$uang_muka ;
if ($tahun==1) {
$bunga=$tahun*0.0818 ; }
if ($tahun==2) {
$bunga=$tahun*0.0938 ; }
if ($tahun==3) {
$bunga=$tahun*0.1068 ; }
if ($tahun==4) {
    $bunga=$tahun*0.1196 ;
}

$jumlah_bunga=$bunga*$pokok_pinjaman ;
$total_pinjaman=$pokok_pinjaman+$jumlah_bunga;
$total_pinjamankoma=number_format($total_pinjaman);
$jangka_kredit=$tahun*12;
$cicilan=$total_pinjaman/$jangka_kredit;
$cicilanbunga=number_format($cicilan);
$pokok_pinjamankoma=number_format($pokok_pinjaman);
if ($tahun==1) {
$biaya_adm=500000; }
if ($tahun==2) {
$biaya_adm=550000; }
if ($tahun==3) {
$biaya_adm=600000; } 
$biaya_admkoma=number_format($biaya_adm);
$total_pembayaran_pertama=$uang_muka+$cicilan+$biaya_adm+$asuransi;
$total_pembayaran_pertamakoma=number_format($total_pembayaran_pertama);
?>
<td align="right"><?php echo "$pokok_pinjamankoma"; ?></td>
</tr>
<tr>
<td><strong>Lama Pinjaman</strong></td>
<td align="right"><?php echo "$jangka_kredit bulan"; ?></td>
</tr>
<tr>
<td><strong>Angsuran Pembayaran</strong></td>
<td align="right"><?php echo "$cicilanbunga"; ?></td>
</tr>
<tr>
<td><strong>Asuransi Kendaraan TLO</strong></td>
<td align="right"><?php echo "$asuransikoma"; ?></td>
</tr>
<tr>
<td><strong>Biaya Administrasi</strong></td>
<td align="right"><?php echo "$biaya_admkoma" ; ?></td>
</tr>
<tr>
<td><strong>Total Pembayaran Pertama</strong></td>
<td align="right"><?php echo "$total_pembayaran_pertamakoma"; ?></td>
</tr>
<td colspan="6" style="background: black; padding: 0cm 7.4pt 0cm 7.4pt; width: 460pt;"><div align="center" class="MsoNormal" style="margin: 1pt; text-align: center;"> <span class="style1"><span class="style3">Created By <a href="http://daftarharga.biz">DaftarHarga.Biz</a></span></span> </div></td>
    </tr>
 <td colspan="6" style="background: black; padding: 0cm 7.4pt 0cm 7.4pt; width: 460pt;"><div align="center" class="MsoNormal" style="margin: 1pt; text-align: center;"> <span class="style5"><a href="form.php"><button>COBA LAGI</button></a></span> </div></td>
    </tr>
</table>
</body>
</html>

that's how! I can write in my articles at this time if not understand please ask. And hopefully this article useful to the reader as well and can be used as a reference of interest.that's how! I can write in my articles at this time if not understand please ask. And hopefully this article useful to the reader as well and can be used as a reference of interest.