INPUT

<body>
<pre>
<form action="outputbioskop.php" method="post">
BIOSKOP SAHABAT KITA
------------------------------<br>
Notransaksi : <input type="text" name="no">
Pilih hari : <input type="radio" name="hari" value="umum">umum<input type="radio" name="hari"
value="libur">libur<br>
tanggaltransaksi : <Select size=1 name="tgl"><option>tanggal</option>
<?
For ($a=1;$a<=31;$a++)
{
echo"<option>$a</option>";
}
?>
</select> <Select size=1 name="bulan"><option>bulan</option>
<?
$bulan=array("januari","februari","maret","april","mei","juni","juli","agustus","september","oktober","n
ovember","desember");
For ($b=0; $b<=11;$b++)
{
echo"<option value=$bulan[$b]>$bulan[$b]</option>";
}
?>
</select><Select size=1 name="tahun"><option>tahun</option>
<?
For ($tahun=2007;$tahun<=2012;$tahun++)

} ?> </select><br> pilih studio <Select size=1 name="studio"><option>Pilih Studio</option> <option>1</option> <option>2</option> <option>3</option> </select><br> pilih jam <input type="radio" name="jam" value="14.{ echo"<option>$b</option>".00<br> jumlahtiket<input type="text" name="jumlah"><br> <input type="submit" name="Pesan" value="Pesan"><input type="reset" name="Batal" value="Batal"> </form> </body> </html> .00">20.00">17.00 <input type="radio" name="jam" value="17.00 <input type="radio" name="jam" value="20.00">14.

break.php" method="post"> SRUK PEMBELIAN TIKET BIOSKOP SAHABAT KITA<br> -----------------------------------------------<br> <? echo"tanggaltransaksi:$tgl-$bulan-$tahun<br>". default: $film="bungasetaman". } . ?> <? switch($studio) { case 1: $film="Tendangansikakipincang". break. } if($hari=="umum") { $hrg=50000.OUTPUT <body> <pre> <form action="bioskop. case 2: $film="mimpirintihanibu".

echo"studio :$studio<br>". } if($jumlah>=10) { $diskon=0. } else { $diskon=0*$hrg. :$jam<br>". echo"pilihhari :$hari<br>". echo"======================================<br>". echo"nama film echo"pilih jam echo"jumlahtiket :$film<br>". . echo"notransaksi :$no<br>". } $tot=($hrg*$jumlah).1*$hrg.05*$hrg.else { $hrg=100000. $totbay=($tot-$diskon). } else if($jumlah>=5) { $diskon=0. :$jumlah<br>".

echo"Total echo"Diskon echo"Totalbayar :$tot<br>". :$totbay<br>". ?> <input type="submit" name="INPUT" value="INPUT"> </form> </body> . echo"---------------------------------------<br>". :$diskon<br>".

Sign up to vote on this title
UsefulNot useful