PHP#5

Minggu, 01 Desember 2013


Creating Header, Content and Footer with PHP

1. Open Dreamweaver
     Fill these code to make a simple header
<body>
<center>
==============================
<br/>
<strong>SMK TELKOM SANDHY PUTRA MALANG</strong>
<br/>
==============================
<br/>
<?php
$kalimat = "ATTITUDE IS EVERYTHING !";
function tulistebal($text){
    echo "<b>$text</b>";
}
?>
</body>

2. After that, make a footer
     <body>
<center>
<br/>
=========================================
<br/>
Copyright Dicky 2013
<br/>
=========================================
<br/>
</body>

3. Final, make this

  <body>
<?php
require("modul_header.php");
tulistebal("Kami punya semboyan :");
echo "<br><br>";
echo "<font color=green><b>$kalimat</b></font>";
require("modul_footer.php");
?>
</body>

Result










You must try to make like this

Copyright @ 2013 Dicky Seth .

About Metro

Follow us on Facebook