1.Biodata.php
Script nya :
<pre>
<form method="post"
action="PROSES.PHP">
<center><h1><font size="+3"
face="broadway"><strong>Biodata</strong></font></h1></center><font
face="broadway">
Nama depan
= <input
type="text" name="widi"
/>
Nama belakang
= <input
type="text" name="ws" />
Umur =
<input type="text"
name="di" />
Alamat =
<textarea name="diwi"></textarea>
Jenis kelamin
= <input type="radio"
name="jk" value="laki-laki" checked="checked"
/>Laki-laki <input
type="radio" name="jk" value="perempuan"
/>Perempuan
Hoby =
<input type="checkbox" name="wp"
value="chatting" checked="checked">Chatting
<input type="checkbox" name="wd"
value="browsing">Browsing
<input type="checkbox" name="wpp"
value="mancing">Mancing <br />
<CENTER><input type="submit"
name="h" value="OK"> <input type="reset"
name="j" value="BATAL">
</CENTER></font></form>
</pre>
Tampilan di Browser:
2.Proses.php
Scripnya:
<pre>
Nama depan =
<?php echo $_POST['widi'];?><BR>
Nama belakang= <?php echo $_POST['ws'];?><BR>
Umur = <?php
echo $_POST['di'];?><BR>
Alamat =
<?php echo $_POST['diwi'];?><BR>
Jenis kelamin= <?php echo $_POST['jk'];?><BR>
Hobi
=<BR>
<?php echo $_POST['wp'];?>
<?php echo $_POST['wd'];?>
<?php echo $_POST['wpp'];?>
</pre>
Tampilan di Browser:
0 komentar:
Posting Komentar