output gaji


outgaji.php

 

<html>
<head>
<title>Berbagi Cerita</title>
</head>
<body>
<body bgcolor=”white”>
<?
$nip=$_POST[“nip”];
$nama=$_POST[“nama”];
$jabatan=$_POST[“jabatan”];
$jenis=$_POST[“jenis”];
$t1=$_POST[“tr”];
$t2=$_POST[“mk”];
$t3=$_POST[“ks”];
$mh=$_POST[“mh”];
if ($jabatan==”DIREKTUR”)
{
$gaji=5000000;
}
else if ($jabatan==”MANAGER”)
{
$gaji=3000000;
}
else
{
$gaji=2000000;
}
$tunjangan=$t1+$t2+$t3;
$total=$gaji+$tunjangan;
echo”<pre>
DATA GAJI KARYAWAN
=========================
NIP           :$nip
NAMA KARYAWAN :$nama
JENIS KELAMIN :$jenis
JABATAN       :$jabatan
GAJI POKOK    :$gaji
TUNJANGAN     :$tunjangan
MOTTO HIDUP   :$mh
TOTAL GAJI    :$total
==========================
“;
?><br>
<a href=”ingaji.php”>klik disini</a> untuk input lagi
</body>
</html>

Terima Kasih Atas Komentar Yang Di Berikan Semoga Bermanfaat !!!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s