<?php
include "F-config.php";
//definisikan variabel dari Formmhs
//if($_FILES['photo']['size'] > 0 && $_FILES['photo']['error'] == 0){
$tgl_daf   = $_POST['tgl_daf'];
$nm_cmhs   = $_POST['nm_cmhs'];
$kota_lhr  = $_POST['kota_lhr'];
$tgl_lhr   = $_POST['tgl_lhr'];
$agama     = $_POST['agama'];
$jenkel    = $_POST['jenkel'];
$tbadan    = $_POST['tbadan'];
$bbadan    = $_POST['bbadan'];
$alamat    = $_POST['alamat'];
$telp      = $_POST['telp'];
$sklh_asal     = $_POST['sklh_asal'];
$wali          = $_POST['wali'];
$prog_study    = $_POST['prog_study'];
$ta    	       = $_POST['ta'];
$ket    	   = $_POST['ket'];

//simpan data
$input ="insert into cmhs(tgl_daf,nm_cmhs,kota_lhr,tgl_lhr,agama,jenkel,tbadan,bbadan,alamat,telp,sklh_asal,wali,prog_study,ta,ket)
 values('$tgl_daf','$nm_cmhs','$kota_lhr','$tgl_lhr','$agama','$jenkel','$tbadan','$bbadan','$alamat','$telp','$sklh_asal','$wali','$prog_study','$ta','$ket')";
mysql_query($input);
if ($input)
{
echo"<table border =0 width=50% align=center bgcolor=#CCFFFF><strong>
<tr><td bgcolor=#99FF99 colspan=2 align=center><h3>Terimakasih telah mendaftar....silahkan datang ke Sekretariat AKPER / AKBID untuk melengkapi berkas SPMB</h3></td></tr>
<tr><td>Tgl Daftar </td>
<td>: $tgl_daf</td></tr>
<tr><td>Nama </td>
<td>: $nm_cmhs</td></tr>
<tr><td>Tempat Lahir </td>
<td>: $kota_lhr</td></tr>
<tr><td>Tanggal Lahir</td>
<td>: $tgl_lhr</td></tr>
<tr><td>Agama </td>
<td>: $agama</td></tr>
<tr><td>Jenis Kelamin </td>
<td>: $jenkel</td></tr>
<tr><td>Tinggi Badan </td>
<td>: $tbadan</td></tr>
<tr><td>Berat Badan </td>
<td>: $bbadan</td></tr>
<tr><td>alamat</td>
<td>: $alamat</td></tr>
<tr><td>Telpon/HP </td>
<td>: $telp</td></tr>
<tr><td>Sekolah Asal </td>
<td>: $sklh_asal</td></tr>
<tr><td>Orang Tua/Wali</td>
<td>: $wali</td></tr>
<tr><td>Program Study </td>
<td>: $prog_study</td></tr>
<tr><td>TA. </td>
<td>: $ta</td></tr>
<tr><td>Ket </td>
<td>: $ket</td></tr>
<tr><td bgcolor=#99FF99 colspan=2 align=right><a href=F-fcmhs.php>[ back ]</a></td></tr> </strong> </table>";

}
else
{
echo "Poses Input Gagal";
}
//}
?>

