Website Dinamis 1

Lankah 1 // untuk mendapatkan nilai variable $go


 <?php

if(isset($_GET['go'])){

if($_GET['go']==1 or $_GET['go']==0){

echo "About Me";

}else if($_GET['go']==2)

{

echo "Skill";

}else{

echo "Services";

}

   }else{

    echo "About Me";

   }


?>



Langkah 2

<li style="text-decoration: none;display: inline-block;">

<a href="index.php?go=1" style="text-decoration: none">About Me</a>

</li>

<li style="text-decoration: none;display: inline-block;">

<a href="skill.php?go=2" style="text-decoration: none">Skill</a>

</li>

<li style="text-decoration: none;display: inline-block;">

<a href="services.php?go=3" style="text-decoration: none">Services</a>

</li>






Website Dinamis 1 Website Dinamis 1 Reviewed by Leo on 16:34 Rating: 5

No comments