ini adalah script formnya..
<html>
<head>
<title>buku tamu</title>
</head>
<form action="posmid" method="post">
<font face="arial" size="6"color="Black"> Silakan Masukan Data Anda :</font><br><br>
<tr>
<td width="16%">Nama</td>
<td width="2%">:</td>
<td width="82%"><font size="3"
face="Arial"><input TYPE="text"
NAME="nama" SIZE="30"
maxlenght="80"></font></td>
</tr>
<br><br>
<tr>
<td width="16%">NIM</td>
<td width="2%">:</td>
<td width="82%"><font size="3"
face="Arial"><input TYPE="text"
NAME="NIM" SIZE="30"
maxlenght="80"></font></td>
</tr>
<br><br>
<tr>
<td width="16%">Email</td>
<td width="2%">:</td>
<td width="82%"><font size="3"
face="Arial"><input TYPE="text"
NAME="email" SIZE="30"
maxlenght="80"></font></td>
</tr>
<tr>
<td width="16"><b><p> Tanggal Lahir </b></td>
<td width="2%"> : </td>
<td width="82%"><font size="3" face="arial">
</font> <p>
<select name="tanggal" id="tanggal">
<option value="1">1</option>
<option value="2">2</option >
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option >
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option >
<option value="15">15</option>
<option value="16">16</option>
<option value="17">18</option>
<option value="19">19</option>
<option value="20">20</option >
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option >
<option value="30">30</option>
<option value="31">31</option>
<p>bulan :
<select name="bulan" id="bulan">
<option value="Januari">Januari</option>
<option value="Februari">Februari</option >
<option value="Maret">Maret</option>
<option value="April">April</option>
<option value="Mei">Mei</option>
<option value="Juni">Juni</option>
<option value="Juli">Juli</option>
<option value="Agustus">Agustus</option>
<option value="September">September</option >
<option value="Oktober">Oktober</option>
<option value="November">November</option>
<option value="Desember">Desember</option>
<p>tahun :
<select name="tahun" id="tahun">
<option value="1990">1990</option>
<option value="1991">1991</option>
<option value="1992">1992</option>
<option value="1993">1993</option>
<option value="1994">1994</option>
<option value="1995">1995</option>
<option value="1996">1996</option>
<option value="1997">1997</option>
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
</select></br></p>
<td width="16%"><font size="2"
face="Arial"><input TYPE="submit"
NAME="gb" VALUE="KIRIM"></font></td>
<td width="2%"></td>
<td width="82%"></td>
</tr>
<input type="RESET" value="HAPUS">
</form>
</body>
</html>
sedangkan yang dibawah ini adalah pak postnya
<HTML>
<HEAD>
<TITLE>Pak Posnya</TITLE>
</HEAD>
<BODY>
</head>
<?
print("nama : $nama <BR>\n");
print("NIM : $NIM <BR>\n");
print("Email : $email <BR>\n");
print("Tanggal : $tanggal <BR>\n");
print("Bulan : $bulan <BR>\n");
print("Tahun : $tahun <BR>\n");
?>
</BODY>
</HTML>
Tidak ada komentar:
Posting Komentar