ARI JULIANTO Network www.arijulianto.com

Oleh | HTML | | Dibaca 2.426 kali | 0 komentar

Sekarang kita akan membahas cara membuat form seperti ini

Nama :
Alamat :
Agama :
Password :
Jenis kelamin: Pria Wanita
Hobi:
Sepakbola Bulutangkis Komputer
Permainan video Internet
Komentar

<HTML>
<HEAD>
<TITLE>Contoh Membuat Form</TITLE></HEAD>
<BODY>
<H1>FORM PENDAFTARAN ONLINE</H1>
<FORM method="POST" action="proses.htm">
<TABLE>
<TR>
<TD><B>Nama :</B></TD>
<TD><INPUT type="Text" name="varNama" size="15"></TD>
</TR>
<TR>
<TD><B>Alamat :</B></TD>
<TD><INPUT type="Text" name="varAlamat" size="30"></TD>
</TR>
<TR>
<TD><B>Agama :</B></TD>
<TD><SELECT name="agama" size="1">
<OPTION>Islam</OPTION>
<OPTION>Kristen</OPTION>
<OPTION>Budha</OPTION>
<OPTION>Hindu</OPTION>
</SELECT> </TD>
</TR>
<TR>
<TD><B>Password :</B></TD>
<TD><INPUT type="Password" name="varPassword" size="10"></TD>
</TR>
</TABLE>
<B>Jenis kelamin: </B><INPUT checked type="Radio" name="Kelamin" value="Pria">Pria
<INPUT type="Radio" name="Kelamin" value="Wanita">Wanita<BR>
<B>Hobi:</B><BR>
<INPUT type="Checkbox" name="Hobi" value="Soccer">Sepakbola
<INPUT checked type="Checkbox" name="Hobi" value="Badminton">Bulutangkis
<INPUT type="Checkbox" name="Hobi" value="Computer">Komputer <BR>
<INPUT type="Checkbox" name="Hobi" value="Game">Permainan video <INPUT checked type="Checkbox" name="Hobi" value="Internet">Internet<BR>
<B>Komentar</B><BR>
<TEXTAREA Cols="30" Rows="5" name="komentar"></TEXTAREA><BR>
<INPUT type="Submit" value="Send info"> <INPUT type="Reset" value="Clear form">
</FORM>
</BODY>
</HTML>