Form



Pada halaman website terdapat objek form yang dapat bekerja dengan adanya web server seperti CGI, PHP atau ASP.

 Ketiklah file html di bawah ini dan simpan dengan nama : form.html
-----------------------------------------
 <html>
<head>
<title>Formulir</title>
</head>
<body>
<form action="#" method="get">
<h3>Formulir Biodata</h3>
<table width="400" border="1" cellpadding="0" cellspacing="2" bordercolor="#666666">
<tr>
<td width="100">Nama</td>
<td><input type="text" name="textfield"></td>
</tr>
<tr>
<td>Alamat</td>
<td><textarea name="textarea"></textarea></td>
</tr>
<tr>
<td>Tempat</td>
<td><input type="text" name="textfield2"></td>
</tr>
<tr>
<td>Tanggal Lahir </td>
<td><select name="select">
<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">17</option>
<option value="18">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>
</select>
<select name="select2">
<option value="1">Januari</option>
<option value="2">Februari</option>
<option value="3">Maret</option>
<option value="4">April</option>
<option value="5">Mei</option>
<option value="6">Juni</option>
<option value="7">Juli</option>
<option value="8">Agustus</option>
<option value="9">September</option>
<option value="10">Oktober</option>
<option value="11">Nopember</option>
<option value="12">Desember</option>
</select>
<select name="select3">
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
</select></td>
</tr>
<tr>
<td>Jenis Kelamin </td>
<td><input name="radiobutton" type="radio" value="radiobutton">
Pria
<input name="radiobutton" type="radio" value="radiobutton">
Wanita</td>
</tr>
<tr>
<td>Hobi</td>
<td><input type="checkbox" name="checkbox" value="checkbox">
Olah raga </td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="checkbox" name="checkbox2" value="checkbox">
Baca Buku </td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="checkbox" name="checkbox3" value="checkbox">
Internetan</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Submit">
<input name="Reset" type="reset" id="Reset" value="Reset"></td>
</tr>
</table>
</form>
</body>
</html>
--------------------------------------
hmmmm.. lumayan panjang....
tapi lihat aja hasilnya yang memuaskan.. dan download dibawah ini :
------------------------download---------------------------------


Inikan artikel Form bermanfaat bagi Anda.

Powered by Blogger.

Zona Kita - All Right Reserved.Powered By Blogger
Theme Designed Kumpulan artikel Menarik