Gambar 1.0 Ketika Button Tampil Diclick Maka Akan Tampil Seperti Gambar 2.0 |
Gambar 2.0 Ketika Click Back To Home Maka Akan Tampil Seperti Gambar 1.0 |
Coding/Listing Gambar 1.0 (Simpan Dengan Nama latihan11.html) :
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Latihan 11</title>
</head>
<body style="background-image:url(http://localhost/Adam/Background%20Blogger/Abstract-White-Mirrors.jpg)">
<form action="tampil.php" method="post">
<center><h1>Konser Amal Indahnya Berbagi</center></h1>
<hr width=100% size=4 color=black />
<br>
<pre>
Nama Pemesan : <input type="text" size=35 name=nama>
Kode Studio : <select name=kode>
<option>--Pilih Studio--</option>
<option value="Studio 1">Studio 1</option>
<option value="Studio 2">Studio 2</option>
</select>
Jenis Kelas : <input type="radio" name=jk value=VIP>VIP
<input type="radio" name=jk value=Festival>Festival
Jumlah Tiket : <input type="text" size=3 name=jumbel>
<br>
<input type="submit" value=Tampil><input type="reset" value=Batal>
</form>
</body>
</html>
Coding/Listing Gambar 2.0 (Simpan Dengan Nama tampil.php) :
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Latihan 11</title>
</head>
<body style="background-image:url(http://localhost/Adam/Background%20Blogger/Abstract-White-Mirrors.jpg)">
<?
$nama=$_POST['nama'];
if($kode=='Studio 1')
{
$bintang='Nidji';
}
else
if($kode=='Studio 2')
{
$bintang='Opick';
}
else
{
$bintang='';
}
if($jk=='VIP')
{
$harga=500000;
}
else
{
$harga=250000;
}
$total=$harga*$jumbel;
$jumbel=$_POST['jumbel'];
?>
<center><h1>Konser Amal Indahnya Berbagi</center></h1>
<hr width=100% size=4 color=black />
<br>
<pre>
Nama Pemesan : <?=$nama?><br>
Studio : <?=$kode?><br>
Bintang Tamu : <?=$bintang?><br>
Jenis Kelas : <?=$jk?><br>
Harga : Rp. <?=$harga?><br>
Jumlah Beli : <?=$jumbel?><br>
==================================<br>
Total Harga : Rp. <?=$total?></pre
<br>
<center><h3><a href="latihan11.html">Back To Home</center></h3></a>
</body>
</html>
Update Contact :
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email : Fajarudinsidik@gmail.com
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email: Fajarudinsidik@gmail.com
atau Kirimkan Private messanger melalui email dengan klik tombol order dibawah ini :