forked from kokonior/PHP-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzulnurdiana.php
35 lines (29 loc) · 1.02 KB
/
zulnurdiana.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
if($_SERVER['REQUEST_METHOD'] == "POST"){
if(isset($_POST['submit'])){
$hari = $_POST['jumlah'];
$codeBK = $_POST['namaBK'];
if($codeBK == "algoritma"){
$nama = "Algoritma & Pemrograman";
$harga = 150000;
}else if($codeBK == "php"){
$nama = "Pemrograman PHP";
$harga = 90000;
}else if($codeBK == "java"){
$nama = "Pemrograman Java";
$harga = 175000;
}
else if($codeBK == "si"){
$nama = "Sistem Informasi";
$harga = 80000;
} else {
$nama = "Aljabar Linear";
$harga = 50000;
}
function total($a,$b){
$hasil = floatval($a) * floatval($b);
return $hasil;
}
}
}
?>