Berikut Source Code dari Tugas PWDPB part 2 :
<style type="text/css">
.text {
text-align : center;
font-family : Times ;
font-size : 45px;
color : brown;
margin-top :20px;
}
.center {
margin-left : auto;
margin-right : auto;
margin-top : 30px;
}
</style>
<?php
$nama = "Rasya Oetama Putra" ;
$jenis_kelamin = "Laki-Laki" ;
$umur = 16 ;
$nis = 202120970 ;
$tanggal_lahir = "13 Agustus 2006" ;
$jurusan = "Rekayasa Perangkat Lunak" ;
$hobi = "Nonton Anime" ;
$citacita = "Desktop Developer" ;
$handphone = "085697768442" ;
echo '<div class="text">Personal Biodata</div>';
?>
<table class="center" border=1px cellpadding="20">
<tr>
<th>BIODATA</th>
<th>ISI</th>
</tr>
<tr>
<td>Nama :</td>
<td><?php echo $nama; ?></td>
</tr>
<tr>
<td>Jenis Kelamin :</td>
<td><?php echo $jenis_kelamin; ?></td>
</tr>
<tr>
<td>Umur :</td>
<td><?php echo $umur; ?></td>
</tr>
<tr>
<td>NIS :</td>
<td><?php echo $nis; ?></td>
</tr>
<tr>
<td>Tanggal Lahir :</td>
<td><?php echo $tanggal_lahir; ?></td>
</tr>
<tr>
<td>Jurusan :</td>
<td><?php echo $jurusan; ?></td>
</tr>
<tr>
<td>Hobi :</td>
<td><?php echo $hobi; ?></td>
</tr>
<tr>
<td>CitaCita :</td>
<td><?php echo $citacita; ?></td>
</tr>
<tr>
<td>Handphone :</td>
<td><?php echo $handphone; ?></td>
</tr>
</table>
Berikut hasil dari Source Code diatas :