Pages

Tri Dharma Tasdik | Prodi Sistem Informasi | Skripsi SI
Program Utama
Pengobatan Ruqyah Mandiri
Sistem Informasi (S1)
Lomba
Galang Dana Beasiswa
Blog | Kontak | Siap Kerja | Sertifikat | PrivacyPolicy | Inggris Arab | Daftar Isi

Monday, October 5, 2020

DDP 6

formulir.php

<html>
<head>
<title> Formulir </title>
</head>
<body>
 <form action="rois8f.php" method="post">
 Formulir
 <table>
  <tr>
   <td> Jumlah Lembar Fotocopy </td>
   <td><input type="text" name="jumlah"></d>
  </tr>
  <tr>
  <td colspan="2"><input type="submit" name="hitung" value="Hitung"></td>
  </tr>
 </table>
 </form>
</body>
</html> 

**

hasil.php

<html>

<head>
<title>Hasil biaya </title>
</head>
<body>
Hasil Biaya <br>
<?php
 $jum = $_POST['jumlah'];
 $hasil;
 if ($jum < 100)
 {
  $tarif = 150;
                $hasil= $jum * $tarif ;
  echo "Jumlah Lembar Fotocopy = $jum <br>";
  echo "Tarif harga = $tarif <br>";
  echo "Total bayar = $hasil <br>";
 } else if ($jum < 200)
 {
  $tarif = 100;
                $hasil= $jum * $tarif ;
  echo "Jumlah Lembar Fotocopy = $jum <br>";
  echo "Tarif harga = $tarif <br>";
  echo "Biaya harus bayar = $hasil <br>";
 }else if ($jum < 200 )
 {
  $tarif = 80;
                $hasil= $jum * $tarif ;
  echo "Jumlah Lembar Fotocopy = $jum <br>";
  echo "Tarif harga = $tarif <br>";
  echo "Biaya harus bayar = $hasil <br>";
 }else{
  echo "Jumlah tidak sesuai";
 }
?>
</body>
</html>

 

* Kemungkinan muncul error saat dijalankan. Silakan edit! :)

No comments:

Post a Comment

Tips Mendidik Anak Balita TikTok @ois.tok

Tips Skripsi Program Studi Sistem Informasi

Peluang Magang Jurusan SI

Kupas Tuntas Jurusan Sistem Informasi

Technopreneur: Pengusaha IT Sebelum Lulus

Pekerjaan Data Analyst dan Data Science

Ruang Digital

Jurusan SI Minimal Kuasai 4 Mata Kuliah Ini!

Contoh Visualisasi Data Untuk Skripsi SI

Kuliah Sistem Informasi | Mata Kuliah | Prestasi | Partners | Kelompok Keahlian | Peluang Kerja SI | Ruang Digital | Parenting: Calistung, Hapalan Quran, Keluarga