Headlines News :
Banner iskaruji dot com
TERIMA KASIH TELAH BERKUNJUNG DI PHOPHO POOMKILLER THE'SAINT BLOG

Contoh Form OutPut PHP

<?

$pelanggan=$HTTP_POST_VARS["pelanggan"];

$jumbel=$HTTP_POST_VARS["jumbel"];

$br1=$HTTP_POST_VARS["brg1"];

$br2=$HTTP_POST_VARS["brg2"];

$br3=$HTTP_POST_VARS["brg3"];

$br4=$HTTP_POST_VARS["brg4"];

$disk1=$HTTP_POST_VARS["disc1"];

$disk2=$HTTP_POST_VARS["disc2"];

$disk3=$HTTP_POST_VARS["disc3"];

$jmlbyr=$HTTP_POST_VARS["jmlbyr"];



echo"<table width=50% bordercolor=red cellpadding=0 cellspacing=0 align=center
border=1 bgcolor=white>";

echo"<tr>";

echo"<pre>";

echo"<div align=center><h2>Toko Computer<br></h2></div>";

echo"<hr><b> ";

echo" Nama Pelanggan <b> $pelanggan</b><br>";



$brg=array($br1,$br2,$br3,$br4);

for($c=0;$c<=3;$c++)

{ if($brg[$c]!="")

echo" Nama Barang <b> $brg[$c],&nbsp <br>";}



if($br1)

{$harga=500000;}

elseif($br2)

{$harga=300000;}

elseif($br3)

{$harga=30000;}

else

{$harga=400000;}



$total=$harga*$jumbel;

echo" Harga Satuan Rp. $harga<br>";

echo" Jumlah Beli <u> $jumbel buah</u><br>";

echo" Total Harga Rp. $total<br>";



$disc=array($disk1,$disk2,$disk3,$disk4);

for($d=0;$d<=3;$d++)

{if($disc[$d]="")

echo"$disc[$d],&nbsp";}



if($disk2)

{$disc[$d]=0.1*$total;}

elseif($disk3)

{$disc[$d]=0.2*$total;}

else

{$disc[$d]=0*$total;}



echo" Diskon Rp. $disc[$d]<br>";

$kembali=$total-$disc[$d];

echo" Total Pembayaran <b>Rp. $kembali</b><br>";

$tanggal=date("d F Y");

$jam=date("H:i");

echo" Dicetak pada tanggal : $tanggal - $jam";

echo"</pre>";

?>

<a href="form_order1.php">kembali</a>
Share on :