Mencoba Php_Self
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Buku Tamu Siswa</title>
</head>
<body>
<form method=POST action=<?php_self?>>
<table border=2 width=70% bgcolor=#00FFFF cellspacing=2 align=center>
<tr><td colspan=3 align=center> DATA Siswa BSI WMS </td></tr>
<tr><td>NIM</td><td>:</td><td><input type="text" name=NIM></td></tr>
<tr><td>NAMA</td><td>:</td><td><input type="text" name=NAMA></td></tr>
<tr><td>Jurusan</td><td>:</td><td><input
type="radio" name=jurusan value=TK>TK<input
type="radio" name=jurusan value=MI>MI<input type="radio" name=jurusan
value=KA>KA</td></tr>
<tr><td>Gender</td><td>:</td><td><input
type="radio"name=gender value=Laki-Laki>Laki-Laki<input
type="radio" name=gender value=Perempuan>Perempuan</td></tr>
<tr><td>Alamat</td><td>:</td><td><textarea
rows=0 cols=0 wrap="on"
name=alamat></textarea></td></tr>
<tr><td colspan=3 align=center><input type="submit" value=Proses><input
type="reset" value="Cancel"></td></tr>
</table></form>
<?
$NIM=$HTTP_POST_VARS["NIM"];
$NAMA=$HTTP_POST_VARS["NAMA"];
$jurusan=$HTTP_POST_VARS["jurusan"];
$gender=$HTTP_POST_VARS["gender"];
$alamat=$HTTP_POST_VARS["alamat"];
ECHO"<table cellspacing=2 cellpadding=2 align=center width=50%><tr><td>";
ECHO"<pre> Nim $NIM<br>";
ECHO"<pre> Nama $NAMA<br>";
ECHO"<pre> Jurusan $jurusan<br>";
ECHO"<pre> Gender $gender<br>";
ECHO"<pre> Alamat : $alamat<br></td></tr></table>";
?>
</body>
</html>