Hypertext Preprocessor part 1

Senin, 27 Mei 2013

biodata.php
<body bgcolor = white >
<form action="p.php" method="post">
  <table width="100%" border="0">
    <tr>
      <td colspan="3"><h1 align="center"<font face=chiller><strong>BIODATAKU</strong></h1></td>
    </tr>
    <tr>
      <td width="25%"><font face = vivaldi font size=10>Nama Depan</font></td>
      <td width="4%"><div align="center">:</div></td>
      <td width="71%"><input name="roucky" type="text" id="roucky"></td>
    </tr>

    <tr>
 <td><font face = vivaldi font size=10>Nama Belakang</font></td>
      <td><div align="center">:</div></td>
      <td><input name="roucky" type="text" id="putra"></td>
    </tr>
    <tr>
      <td><font face = vivaldi font size=10>Umur</font></td>
      <td><div align="center">:</div></td>
      <td><input name="d" type="text" id="d"></td>
    </tr>
    <tr>
      <td><font face = vivaldi font size=15>Alamat</font></td>
      <td><div align="center">:</div></td>
      <td><input name="e" type="text" id="e"></td>
    </tr>
    <tr>
      <td><font face = vivaldi font size=10>Jurusan</font></td>
      <td><div align="center">:</div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><input name="radiobutton" type="radio" value="RPL" checked>
     RPL
      <input name="radiobutton" type="radio" value="TKR">
    TKR
      <input name="radiobutton" type="radio" value="AK">
    AK
      <td><div align="center"></div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><font face = vivaldi font size=10>Mapel</FONT> </td>
      <td><div align="center">:</div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><input name="a" type="checkbox" id="a" value="php" checked>
      PHP</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><input name="a" type="checkbox" id="a" value="vb">
      VB</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><input name="b" type="checkbox" id="b" value="html">
      HTML</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  
 
    <tr>
      <td><input type="submit" name="Submit" value="OK">
        <input type="reset" name="Submit2" value="Batal"></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>


 

script proses.php
<?php
<pre>
Nama Depan   = <?php echo $_POST['ROCKY'];?><BR>
Nama Belakang= <?php echo $_POST['MANDALA PUTRA'];?><BR>
Umur         = <?php echo $_POST['d'];?><BR>
Alamat       = <?php echo $_POST['e'];?><BR>
jurusan= <?php echo $_POST['radiobutton'];?><BR>
Mapel         =<br>
<?php echo $_POST['a'];?>
<?php echo $_POST['b'];?>
<?php echo $_POST['c'];?>
</pre>
?>


Hasilnya :

Nama Depan   = ROUCKY
Nama Belakang=MANDALA PUTRA
Umur         = 16
Alamat       = BULUKERTO
jurusan= RPL
Mapel         = PHP


0 komentar:

Posting Komentar

Komentar yang baik dan Sopan
No SARA

You can replace this text by going to "Layout" and then "Page Elements" section. Edit " About "

 
© Copyright 2012-2013 INSIDE BLOG All Rights Reserved.
Template Design by RVJ Creator | Published by RACKER Templates | Powered by Blogger.com.