Selasa, 06 Maret 2012

belajar php 4

membuat header

<?php
error_reporting(0);
$link=$_GET['link'];
?>

<html>
<body>
<table border='2'>
<tr>
<td colspan='2' align='center'><MARQUEE BGCOLOR=”green” width=”900? scrollamount=”2? behavior=”alternate”><h1>HEADER<h1>
</MARQUEE></td>
</tr>
<tr>
<td width='150' align='center' BGCOLOR=”yellow”>
<a href='index2..php?link=index2.'>HOME-</a> <br><br>
<a href='index2..php?link=info2'>INFO-</a> <br><br>
<a href='index2..php?link=Galery2'>GALERY -</a> <br><br>
<a href='kontak.php'>KONTAK AKU </a> <br><br>
</td>
<td width='600' align='left'>
<?php
if($link==''){echo 'ini hlaman home';}else
if($link=='index2.'){echo "ini hlaman home";}else
if($link=='info2'){include('info2.php');}else
if($link=='Galery2'){include('Galery2.php');}
?>
</tr>
<tr>
<td colspan='2' align='center'>copyright @2012 by Miss.Admin</td>
</tr>
</table>
</body>
</html>
◄ Newer Post Older Post ►