<?php
include ('koneksi.php');
?>
<?php
if ($_POST){
/* ini salah (huruf besar dan kecil harus diperhatikan)
$no_juri=$_POST['NO_JURI'];
$nama_juri=$_POST['NAMA_JURI'];
seharusnya: */
$no_juri=$_POST['no_juri'];
$nama_juri=$_POST['nama_juri'];
$sqlstr= "insert into t_juri(NO_JURI,NAMA_JURI)values('$no_juri','$nama_juri')";
var_dump($sqlstr);
$sql=ociparse($conn,$sqlstr);
$cek = ociexecute($sql);
//ocicommit($conn);
if ($cek) {
echo "Proses simpan berhasil dilakukan";
}
else {
echo "Proses simpan gagal dilakukan";
var_dump(oci_error($sql));
}
}
?>
tolong ikuti apa adanya kode yang saya kasi.<?php
error_reporting(E_ALL|E_STRICT);
include ('koneksi.php');
?>
<?php
if ($_POST){
/* ini salah (huruf besar dan kecil harus diperhatikan)
$no_juri=$_POST['NO_JURI'];
$nama_juri=$_POST['NAMA_JURI'];
seharusnya: */
$no_juri=$_POST['no_juri'];
$nama_juri=$_POST['nama_juri'];
$sqlstr= "insert into t_juri(NO_JURI,NAMA_JURI)values('$no_juri','$nama_juri')";
var_dump($sqlstr);
$sql=ociparse($conn,$sqlstr);
$cek = ociexecute($sql);
//ocicommit($conn);
if ($cek) {
echo "Proses simpan berhasil dilakukan";
}
else {
echo "Proses simpan gagal dilakukan";
$error = oci_error($sql);
var_dump($error);
}
}
?>
form_input.php
<table>
<form action="inputjuri.php" method="post">
<tr>
<td>No Juri</td>
<td>:</td>
<td><input name="no_juri" type="text" size="20" maxlength="30" /></td>
</tr>
<tr>
<td>Nama Juri</td>
<td>:</td>
<td><input name="nama_juri" type="text" size="100" maxlength="100" /></td>
</tr>
<tr>
<td height="52"></td>
<td></td>
<td><input type="submit" name="submit" value="SUBMIT" />
<input type="reset" name="reset" value="RESET" /></td>
</tr>
</form>
</table>
sama loh kak sama tutorial cara memproses form html yg bnar ..