Sabtu, 25 Mei 2013

tugas1.php
















<pre>
<form method="post" action="proses.php">
<center><h1><font color="#33FF00" size="+3" face="Impact"><strong>biodata</strong></font><font size="+3" face="Impact"><strong></strong></font></h1></center><p><font face="Impact">  
                nama depan        = <input type="text" name="anis"  /></font></p><p><font face="Impact">nama belakang= <input type="text" name="tiyarma" /></font></p><p><font face="Impact">          umur                            = <input  type="text" name="16" />
                alamat                       =
                                                                                      <textarea name="puhpelem"></textarea></font></p><p><font face="Impact">          jenis kelamin    =
                                                  <input type="radio" name="jk" value="laki-laki" checked="checked" />laki-laki  <input type="radio" name="jk" value="perempuan" />perempuan</font></p><p><font face="Impact">              hoby                           =
                                               <input type="checkbox" name="chatting" value="chatting" checked="checked">chatting   <input type="checkbox" name="browsing" value="browsing">browsing <input type="checkbox" name="mancing" value="mancing">mancing


                                                                                                                                  <input type="submit" name="yes" value="ok">                          <input type="reset" name="no" value="batal">
</font></p></form>
</pre>





<pre>
nama depan   = <?php echo $_POST['anis'];?><BR>
nama belakang= <?php echo $_POST['tiyarma'];?><BR>
umur         = <?php echo $_POST['16'];?><BR>
alamat       = <?php echo $_POST['puhpelem'];?><BR>
jenis kelamin= <?php echo $_POST['jk'];?><BR>
hobi         =<BR>
<?php echo $_POST['chatting'];?>

<?php echo $_POST['browsing'];?>

<?php echo $_POST['mancing'];?>
</pre>