antara script galeri fto n script data siswa q.... ne q sertakan jg script bwt form tambah data siswanya.. trs rencana q,, dsblah kiri form ne mw tk kc bwt upload fto siswanya jg mas,, gmn cranya??? tlong each,,, thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Form Siswa</title>
</head>
<body>
<?php
include("koneksi.php");
mysql_select_db("data_siswa");
if($proses){
if($nis==""){
echo"NIS belum terisi";
}elseif ($nama==""){
echo"Nama belum terisi";
}elseif ($kelas==""){
echo"Kelas belum terisi";
}elseif ($jurusan==""){
echo"Jurusan belum terisi";
}else{
mysql_query("INSERT INTO tabel_siswa(nis,nama,kelas,jurusan) values ('$nis','$nama','$kelas','$jurusan')");
echo"<p> Data sukses ditambahkan </p>";
echo"<p> <a href=\"form_siswa.php\" target=\"_parent\">Tambah Data</a>, <a href=\"tampil_siswa.php\">Lihat Data</a></p>";
}
}else
{
?>
<div align="center">
<p>FORM DATA SISWA</p>
<form id="form1" name="form1" method="post" action="form_siswa.php">
<table width="100%" border="2" cellspacing="2" cellpadding="2">
<tr>
<td width="116" bgcolor="#CCCCCC">NIS</td>
<td width="362" bgcolor="#CCCCCC"><label for="nis"></label>
<input type="text" name="nis" id="nis" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">NAMA</td>
<td bgcolor="#CCCCCC"><label for="nama"></label>
<input name="nama" type="text" id="nama" size="50" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">KELAS</td>
<td bgcolor="#CCCCCC"><label for="kelas"></label>
<input name="kelas" type="text" id="kelas" size="20" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">JURUSAN</td>
<td bgcolor="#CCCCCC"><label for="jurusan"></label>
<input name="jurusan" type="text" id="jurusan" size="50" /></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"> </td>
<td bgcolor="#CCCCCC"><input type="submit" name="proses" id="proses" value="PROSES" /></td>
</tr>
</table>
</form>
<p><a href="tampil_siswa.php">Lihat Data</a> | <a href="edit_siswa.php">Edit Data</a></p>
</div>
<?
}
?>
</body>
</html>