<?php
error_reporting(E_ALL|E_STRICT);
include ('koneksi.php');
if (isset($HTTP_POST_VARS['submit']) && $HTTP_POST_VARS['submit']=='SUBMIT'){
$no_juri=$HTTP_POST_VARS['no_juri'];
$nama_juri=$HTTP_POST_VARS['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 action="" method="post">
<table>
<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>
</table>
</form>
kasi tahu saya text yang keluar, setelah disubmit.